php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #3871 The isdst flag is not returned as part of the array from getdate()
Submitted: 2000-03-19 15:57 UTC Modified: 2000-04-30 06:10 UTC
From: alan at anala dot co dot uk Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Beta 4 Patch Level 1 OS: Red Hat 6.1
Private report: No CVE-ID: None
 [2000-03-19 15:57 UTC] alan at anala dot co dot uk
The array returned by the PHP getdate() function does not include the daylight saving time flag which is supplied by the Linux function localtime().

Probably need to add something like
	add_assoc_string(return_value, "is_dst", ta->tm_isdst);
into PHP_FUNCTION(getdate) in ext/standard/datetime.c

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-04-30 06:10 UTC] sterling at cvs dot php dot net
If you want this functionality either use date with the 'I' formatting option or use the localtime
function.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jun 14 05:00:01 2026 UTC