Determine whether gmdate() is safe to use for ISO/doomsday purposes. #23

jmalloc opened this Issue Jan 23, 2013 · 1 comment


None yet

1 participant

jmalloc commented Jan 23, 2013

It works without error with empty php.ini, so it doesn't require the current timezone, but there may be other state it needs.

If it's OK to use, then Calendar::iso[Week|Year]Number() and Calendar::dayOfWeek() can be reimplemented to use gmdate('o/W/N');

jmalloc commented May 6, 2013

There does not seem to be any reliance on state so long as a timestamp is passed explicitly.

So those Calendar methods can be reimplemented as discussed.

@jmalloc jmalloc closed this in c4b0aa9 May 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment