This topic is locked

Time Function

10/2/2010 3:42:03 PM
PHPRunner General questions
S
smith author

When trying get the current time, the time filed default entry is made like date('h:i:a')

But when time displayed is not native my current system time is 01:11 AM but the page shows 7:41:00 AM how to make default timezone as IST. for a field.

smith

Sergey Kornilov admin 10/2/2010
S
smith author 10/3/2010

Thanks, I have changed the timezone, It shows the time correctly. But there is a problem when applying date('h:i:a') it shows AM instead of PM. For example if the assigned timezone has time 6:30 PM the field shows it as 6:30AM. Am I doing anything wrong?



Default timezone needs to be changed in php.ini:

http://kb.siteground.com/article/How_to_change_the_datetimezone_value_in_PHP.html

A
ann 10/5/2010

Smith,
please clarify when is it changing in this way: before you saved it to the database or after that?

S
smith author 10/5/2010

It shows in the edit page, time field. now i changed to 24hrs format.



Smith,
please clarify when is it changing in this way: before you saved it to the database or after that?

A
ann 10/7/2010

Smith,
It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error. 'Demo Account' button can be found on the last screen in the program.