php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #7323 Limitation to substr()
Submitted: 2000-10-18 18:30 UTC Modified: 2000-11-12 16:43 UTC
From: derekpapesch at crm-strategies dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.3pl1 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: derekpapesch at crm-strategies dot com
New email:
PHP Version: OS:

 

 [2000-10-18 18:30 UTC] derekpapesch at crm-strategies dot com
I haven't looked into this much, but it appears that the substr() function only accepts 
American MM/DD/YYYY, it is possible that this is set up when you install (I didn't install it) but it would be nice if you could add a switch so that substr() accepts the European DD/MM/YYYY format.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-11 05:49 UTC] hholzgra@php.net
i can see absolutely no connection between 
substr() and date formats
 [2000-11-12 16:43 UTC] derick@php.net
I sorted it out and there is no way that there a parameter added to change the behaviour from MM/DD/YY to DD/MM/YY. However, you still can USE the UNIXTIME() function of MySQL.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Feb 24 17:01:32 2024 UTC