CRE Loaded Community

Banner


Board index » CRE Loaded Support » CRE Loaded 6.4

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Wrong time for the Time Zone sellected
PostPosted: Fri Mar 12, 2010 5:49 am 
Offline
CRE Freak
User avatar

Joined: Sun Apr 17, 2005 12:00 am
Posts: 106
Hi,

I have selected in the configuration as time zone, Europe/London GMT +0, Country: UK and zone: London, but on the time stamp on the order is still the server time.

For example, an order placed around 00:10 it shows in the order details as 18:03 which I think is the Eastern Standard Time.

What I'm doing wrong here.


Top
 Profile  
 
 Post subject: Re: Wrong time for the Time Zone sellected
PostPosted: Fri Mar 12, 2010 7:20 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2211
Location: New Zealand
Hi smic

The config setting on the database won't change a server date/time stamp (I guess you've confirmed this in Admin->Tools->Server Info ... Server Date vs Database Date).

Why not get hosted locally? There's some pretty cheap deals in the UK and you get local support.

Simon


smic717394 wrote:
Hi,

I have selected in the configuration as time zone, Europe/London GMT +0, Country: UK and zone: London, but on the time stamp on the order is still the server time.

For example, an order placed around 00:10 it shows in the order details as 18:03 which I think is the Eastern Standard Time.

What I'm doing wrong here.

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Wrong time for the Time Zone sellected
PostPosted: Fri Mar 12, 2010 8:04 pm 
Offline
CRE Freak
User avatar

Joined: Sun Apr 17, 2005 12:00 am
Posts: 106
I found a solution for now.
In admin/includes/languages/englis.php ~line 75 and after includes/languages/englis.php ~line 32 after:
Code:
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

i added:
Code:
date_default_timezone_set('Europe/London');

and because i have spanish language as well, in admin/includes/languages/espanol.php ~line 76 and after includes/languages/espanol.php ~line 20 after:
Code:
@setlocale(LC_TIME, 'Spanish');

I added:
Code:
date_default_timezone_set('Europe/Madrid');

I dont know whether to use date_default_timezone_set or PUTENV, or if is the correct way, i dont want to have other problem for using this function.

In admin/includes/configure.php and /includes/configure.php in the ens i've added the line bellow:
Code:
define('CONFIG_TIME_ZONE', '+00:00');


in admin/includes/functions/database.php and /includes/functions/database.php ~ line 22 changed:
Code:
if ($$link) mysql_select_db($database);

with
Code:
if ($$link) {
      mysql_select_db($database);
      tep_db_query('SET time_zone=\'' . CONFIG_TIME_ZONE . '\'');
    }


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

Board index » CRE Loaded Support » CRE Loaded 6.4

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Wed Feb 08, 2012 8:50 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

Follow Us on Twitter

An error occurred

Oops, an error seems to have occurred. We're sorry for any inconvenience this might have caused. If the error persists, feel free to tell us about it.

CRE Loaded Community Chat hosted by CRE Loaded.

Join now


Chat about what's on your mind. More about public chats.


© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy