kaos Posted June 28, 2010 Share Posted June 28, 2010 The only date format i have on my forums are $datetime=gmdate("d/m/y H:i:s"); // create date and time $recentdate=gmdate("d/m/Y H:i:s"); //create last post date But when a newtopic is created its in 12 hour clock but when a reply is posted its 24 hour clock :/ anyone got any idea what is wrong Quote Link to comment https://forums.phpfreaks.com/topic/206074-php-date/ Share on other sites More sharing options...
PFMaBiSmAd Posted June 28, 2010 Share Posted June 28, 2010 It's more likely that the difference in the two date formats is in the year field. Could you post an example showing the two different values. You have one line of code with 'y' (lowercase) and one with 'Y' (uppercase.) Everything is significant in programming, even a lowercase/uppercase letter in a format parameter. Quote Link to comment https://forums.phpfreaks.com/topic/206074-php-date/#findComment-1078317 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.