Hi Folks,
I have 2 Servers - 1 has Automatic Daylight Saving on, the other has it off. Both Servers have same PHP version and O/S (NT4 Server).
NOTE: im in the UK and the clocks went forward this morning (2 am).
When I use this:
echo gmdate("Y-m-d", mktime("last Sunday")); // gmdate
it returns:
2003-03-30 on Server 1 and
2003-03-31 on Server 2
when I use this:
echo date("Y-m-d", mktime("last Sunday")); // no gmdate!
it returns:
2003-03-31 on Server 1 and
2003-03-31 on Server 2
When I use this:
echo gmdate("Y-m-d", gmmktime("last Sunday")); // gmdate and gmtime!
it returns:
2003-03-31 on Server 1 and
2003-03-30 on Server 2
when I use this:
echo date("Y-m-d", gmmktime("last Sunday")); // gmmktime!
it returns:
2003-03-31 on Server 1 and
2003-03-30 on Server 2
So I have used every combination and cannot get both Servers to return the correct date. I need it to return 2003-03-30 on both Servers - as it should - any ideas?.
thanks in advance 🙂