$t = '01:00:00';
strtotime('January 1, 1970,'.$t)
Returns zero as soon as I change timezone to:
date_default_timezone_set('Europe/Stockholm');
How come?
I would like to get the amount of time stored in $t in seconds.
Thanks / E
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Jan 1st 1970, 01h00 Stockholm time should return 0. It’s Jan 1st 1970 00h00 in UTC.