bmaid Posted December 12, 2007 Share Posted December 12, 2007 Hi guys, I installed a php script. It is displaying the time in adminpanel as '119742, Sep 21, 00:00:00' Instead of '2007, Dec 12, 06:21:58'. Possible reasons? If I run a small javascript to get current server time, it is displaying properly. thanks! Link to comment https://forums.phpfreaks.com/topic/81337-php-time-displays-funny/ Share on other sites More sharing options...
kenrbnsn Posted December 12, 2007 Share Posted December 12, 2007 Javascript get the time on the client, not the server, unless you're using AJAX techniques. Please post the PHP code that generates that display between tags. Ken Link to comment https://forums.phpfreaks.com/topic/81337-php-time-displays-funny/#findComment-412806 Share on other sites More sharing options...
bmaid Posted December 12, 2007 Author Share Posted December 12, 2007 I am not a programmer. But I am seeing this code: Is this the one you are asking? $dates = array(); for ($cur_time_entry = mktime(0, 0, 0, date('m', $first_time_entry), date('d', $first_time_entry), date('Y', $first_time_entry)); $cur_time_entry <= $last_time_entry; $cur_time_entry += $day_time) $dates[] = mktime(0, 0, 0, date('m', $cur_time_entry), date('d', $cur_time_entry), date('Y', $cur_time_entry)); $smarty->assign('dates', $dates); Link to comment https://forums.phpfreaks.com/topic/81337-php-time-displays-funny/#findComment-412810 Share on other sites More sharing options...
bmaid Posted December 15, 2007 Author Share Posted December 15, 2007 Anybody has any advice or reasons? thanks! Link to comment https://forums.phpfreaks.com/topic/81337-php-time-displays-funny/#findComment-415427 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.