|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-13 15:35 UTC] derick@php.net
[2009-11-20 10:02 UTC] vrana@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Jun 16 20:00:02 2026 UTC |
Description: ------------ DateTime::getOffset is said to return the DST offset in the documentation. This sounds like it will simply return 0 or 3600 depending on whether or not DST is in effect for the given DateTime object. It actually returns the full offset from GMT. Documentation should better reflect this or the function be changed. Reproduce code: --------------- date_default_timezone_set('Europe/Helsinki'); $winter = new DateTime('2009-02-13 14:25:41'); echo $winter->getOffset(); Expected result: ---------------- 0 Actual result: -------------- 7200