Hi I have an URGENT problem,
I have a site I have developed on my local machine, and I have recently uploaded the site to my hosting server.
My problem is all my dates, and date calculation are incorrect! I think I have pinpointed this to strtotime function.
example using this code:
$birth = strtotime("20-05-1982");
echo "OUTPUT: " . date("d-M-y",$birth);
output locally is;
output on remote server is;
differences between local and remote;
- the server is hosted in US, whereas i'm in Australia
- Local PHP version 5.2.4, remote is 4.4.7
i think the server is converting the str to time in yyyy mm dd format, but WHY?????
this is quite urgent, so any help is HUGELY appreciated.