View Full Version : $date, wrong in my timezone...
09-03-2007, 09: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, 09: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, 09: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, 09:36 AM
What about if I do something like this:
09-03-2007, 09:37 AM
09-03-2007, 09:42 AM
The way I do it is as below.
$date = date('Ymd', strtotime('-15 hours'));
Hope this helps Kyle
09-03-2007, 09:52 AM
But don't I need to have it AU/Eastern?
09-03-2007, 09:56 AM
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.