jf30 Posted March 14, 2007 Share Posted March 14, 2007 Problem with DST... On one PC, the date function returns the correct time (same as Windows) and shows Daylight Savings Time. On a second PC, the date function returns incorrect time (1 hour behind Windows time) and shows Standard Time instead of Daylight Savings Time. Both PC run Windows XP, SP2....Why would one work as opposed to the other??? How does PHP gets the time from the OS??? Thanks! Link to comment https://forums.phpfreaks.com/topic/42743-wrong-time-versus-windows-time-dst/ Share on other sites More sharing options...
per1os Posted March 14, 2007 Share Posted March 14, 2007 PHP gets it time from the server. If the server time is 5:00pm and your time is 4:00pm, the time is going to be off by an hour, unless you specify an offset via a cookie or something. --FrosT Link to comment https://forums.phpfreaks.com/topic/42743-wrong-time-versus-windows-time-dst/#findComment-207418 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.