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. Quote 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. Quote 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()); Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.