Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Setting default time zone
Author « Topic »  

ebp
Advanced Member

136 Posts

Pre-sales questions only
(More Details...)

Posted - 04/14/2019 :  08:57:14  
Is there a way to force a default time zone? I can't get help from bluehost on their recent server changes and now my time is +5h. I know I can set the timezone in PHP using date_default_timezone_set('America/Chicago') but is there a better way?

Andy
ECT Moderator

95440 Posts

Posted - 04/14/2019 :  09:03:52  
Hi

You can use the date adjust parameter in includes.php for that

https://www.ecommercetemplates.com/phphelp/ecommplus/parameters.asp#date

Andy

Please feel free to review / rate our software

ITZAP
Ecommerce Template Guru

Australia
1010 Posts

Posted - 04/14/2019 :  18:17:32  
Here are sample includes.php config entries to set your timezone and date format:

// GENERAL SETTINGS
date_default_timezone_set('Australia/Sydney');
$dateformatstr="dS F Y"; // show date in format for example 25th May 2004 20:17
$admindateformat=2; // Set date in admin section to UK style format dd/mm/yyyy


Refer to PHP docs for a list of supported Timezones >>

Gary
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000