#49773 [Opn->Csd]: DateTime class getOffset function documentation bug

From: Date: Fri, 13 Nov 2009 21:29:27 +0000
Subject: #49773 [Opn->Csd]: DateTime class getOffset function documentation bug
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3138@lists.php.net to get a copy of this message
ID: 49773 Updated by: vrana@php.net Reported By: rohit at rhovisions dot com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Windows PHP Version: 5.3.0 New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2009-11-13 21:29:26] svn@php.net Automatic comment from SVN on behalf of vrana Revision: http://svn.php.net/viewvc/?view=revision&revision=290703 Log: Not always DST (bug #49773) ------------------------------------------------------------------------ [2009-10-05 05:16:43] rohit at rhovisions dot com Description: ------------ At http://www.php.net/manual/en/datetime.getoffset.php it says "DateTime::getOffset — Returns the daylight saving time offset". This is not accurate, as the function returns the current timezones offset from GMT/UTC (I don't know which one). For EST for example, it shows -14400 seconds for the summer, which is -4 hours, the EST offset from GMT. If I set a winter date, I get -18000 seconds, -5 hours, which is the winter offset as appropriate, from GMT. Its really misleading to simply say that getOffset returns the daylight savings time offset when that's not what it shows at all. I've been searching for a function to show the DST offset, thought this was the solution, and now find that's not the case. Reproduce code: --------------- --- From manual page: datetime.getoffset --- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49773&edit=1

« previous php.doc.bugs (#3138) next »