Help

     Forum      Videos      Knowledge Base      Hire Us      Hosting Providers     Sandbox >

 

Forum

Need a response from us? Become a VIP.
Need help with your site right now? Hire us.

Setting/changing time and date formats

Posted by geobek on March 23, 2011

How do I set/change the current time?
How do I change the date format?

The server hosting my livesite installation is located in the USA, but I am located in Australia and wish to display the local Australian time and use Australian date format conventions. How do I do this? I cannot find any reference to this in your help files or in the main livesite site settings...

George Bekier


Back   
 
4 Comments
Added by ChromeIris
March 23, 2011

There are two options that I know of George. I now live in Australia but am from the US and my host (hostgator) is in the Eastern Time zone of the US.

First option is, edit your forum (or other page style i.e. blog) to add a note stating the forum/blog uses US EST for post date and times, or add +14hours) the end end of ^^submitted_date_and_time^^ so that it looks like this ^^submitted_date_and_time^^ +14 (AET) OR something like this ^^submitted_date_and_time^^ US Eastern, when you are editing the form list view column header.

The second option is to go into your cPanel and use the phpMyAdmin, and use the time zone variable that is normally set to system and change it to your time zone. If you don't know how to do this you may want to call your Host and explain to them that you want your database to reflect your local time and not the host system time and they can help you.

Third option is Camelback has the answer in livesite that we are missing :)
Added by geobek
March 23, 2011

Thanks, ChromeIris.

I am rather hoping for your option 3...
Added by Camelback Web Architects
March 24, 2011

We'll add that to our wish list now. Thanks for the feedback.
Added by Camelback Web Architects
March 24, 2011

By the way, if you want, you can try using the PHP command below by inserting it into your config.php file in the software directory. Please be aware that this is not officially supported by liveSite, so please use at your own risk.

date_default_timezone_set('[time zone goes here]');

More info below:
http://php.net/manual/en/function.date-default-timezone-set.php
http://www.php.net/manual/en/timezones.php

The command above might work for some areas of liveSite, but there still might be some times that are not correct. You might also have to figure out a way to update the timezone in MySQL.
Add Comment:
Please login or register to add a comment or get notified when a comment is added.