in reply to timelocal problems
In the GMT timezone the day light saving will have ended in that period. If you want to have consistent calculation do not use timelocal - which will take that into account but use timegm() instead.
/J\