contiw Posted June 21, 2010 Share Posted June 21, 2010 Noob here. Please bear with me. Invalid CRT parameters detected in this line of code : $date = gmstrftime("%A %d-%b-%y %T %Z", time()); Please advise. Thank You. Link to comment https://forums.phpfreaks.com/topic/205382-date-gmstrftimea-d-b-y-t-z-time-error/ Share on other sites More sharing options...
inversesoft123 Posted June 21, 2010 Share Posted June 21, 2010 It works fine here. Link to comment https://forums.phpfreaks.com/topic/205382-date-gmstrftimea-d-b-y-t-z-time-error/#findComment-1074838 Share on other sites More sharing options...
contiw Posted June 21, 2010 Author Share Posted June 21, 2010 This works $date = gmstrftime("%a, %b %d, %Y, %X",time()); this doesn't $date = gmstrftime("%A %d-%b-%y %T %Z", time()); Link to comment https://forums.phpfreaks.com/topic/205382-date-gmstrftimea-d-b-y-t-z-time-error/#findComment-1075062 Share on other sites More sharing options...
Maq Posted June 21, 2010 Share Posted June 21, 2010 This works $date = gmstrftime("%a, %b %d, %Y, %X",time()); this doesn't $date = gmstrftime("%A %d-%b-%y %T %Z", time()); How doesn't it work? It works fine here. Works for me as well. When I echo $date i get: Monday 21-Jun-10 15:36:58 GMT Link to comment https://forums.phpfreaks.com/topic/205382-date-gmstrftimea-d-b-y-t-z-time-error/#findComment-1075066 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.