Redneckheaven Posted November 25, 2009 Share Posted November 25, 2009 Wanting to know how to get the RIGHT time of someone submitting a comment. Right now when I try it it comes up 1 hr lower then the time on my macjine. Is there a way to get the acutal / current time? Link to comment https://forums.phpfreaks.com/topic/182950-correct-time/ Share on other sites More sharing options...
waynew Posted November 25, 2009 Share Posted November 25, 2009 The time you're seeing is the time where your server is located. To set the time according to your timezone, you can use http://php.net/manual/en/function.date-default-timezone-set.php. Link to comment https://forums.phpfreaks.com/topic/182950-correct-time/#findComment-965645 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.