Quantcast
Channel: PHP strtotime gives me a hour to much - Stack Overflow
Viewing all articles
Browse latest Browse all 2

PHP strtotime gives me a hour to much

$
0
0

I have a datetime in a database table, let's say '2014-08-05 15:12:00'I use this date with strtotime() and convert this to miliseconds. Then on the clientsideI use var date = new Date(date_in_miliseconds)

But the generated date's hour is 1 hour in plus. It is not 15:12, but is 16:12

How can I solve this?


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>