View Full Version : $date, wrong in my timezone...
09-03-2007, 08:29 AM
I have a simple date variable which I am e-mailing,
$date = date('d/m/Y');, but the date comes in a day behind, does it pull it off my server? Is it possible to make the date specific to my timezone... Which is Australia...
09-03-2007, 08:32 AM
If you do the time as well, how many hours behind is it?
Put that at the start of your script and it should be the right time
09-03-2007, 08:33 AM
Jeez I don't know the server is in LA and I'm in Sydney... It's 5.30pm on Monday here...
09-03-2007, 08:36 AM
What about if I do something like this:
09-03-2007, 08:37 AM
09-03-2007, 08:42 AM
The way I do it is as below.
$date = date('Ymd', strtotime('-15 hours'));
Hope this helps Kyle
09-03-2007, 08:52 AM
But don't I need to have it AU/Eastern?
09-03-2007, 08:56 AM
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.