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! Quote Link to comment 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 Quote Link to comment 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); Quote Link to comment 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! Quote Link to comment 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.