Jump to content

strtotime returning date at 12:05 am


HaLo2FrEeEk

Recommended Posts

I'm trying to make a countdown to a certain date by taking the current time and subtracting it from a timestamp of a future date.  For the future date I'm using strtotime().  This is the string I'm using:

 

strtotime("3 May 2010");

 

But the returned timestamp gives me Monday, May 3, 2010 12:05:00 am.  Why is it adding 5 minutes to my timestamp?  I've tried changing the string I'm using for my time, I've tried these:

 

3 may 2010 midnight

3 may 2010 12:00 am

3 may 2010 00:00

 

None seem to work, I'm still getting 12:05 am.  Even if I put 1:30 am or something like that it goes to 1:05.  Can anyone think of a reason for this?

Link to comment
https://forums.phpfreaks.com/topic/194386-strtotime-returning-date-at-1205-am/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.