I am not sure why strtotime()
in PHP returns different result in different timezone even though same date is given as parameter, does anyone know the answer? I also want to know, can I do similar task (converting a datetime
to an int
to do calculations easily) with another function which gives same result across different timezone?
EDIT:
An example:
If I use strtotime('2011-09-19 00:00:00')
shouldn't it just return the difference between 'January 1 1970 00:00:00'
and '2011-09-19 00:00:00'
in seconds ? Why timezone is an issue here? And can I get something which gives just difference without timezone issue?