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
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Setting default time zone
Author « Topic »  

ebp
Advanced Member

140 Posts

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
1022 Posts

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

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

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

Refer to PHP docs for a [url="https://www.php.net/manual/en/function.date-default-timezone-set.php"]list of supported Timezones >>[/url]

Gary
[img]https://itzap.com.au/pics/logo/itzap-website-design-works-mini-logo.png[/img]
  « 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