HaLo2FrEeEk Posted March 7, 2010 Share Posted March 7, 2010 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 More sharing options...
HaLo2FrEeEk Posted March 7, 2010 Author Share Posted March 7, 2010 I'm sorry, I figured it out guys, I was using this string for my date function: l, F d, Y g:m:s a minutes isn't m it's i, so it should be: l, F d, Y g:i:s a It's working now. Sorry for the useless thread. Link to comment https://forums.phpfreaks.com/topic/194386-strtotime-returning-date-at-1205-am/#findComment-1022545 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.