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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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 Dec 21 14:01:32 2024 UTC