osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Time Zone

This is a discussion on Time Zone within the osCMax v2 Features Discussion forums, part of the osCMax v2.0 Forums category; Hi Does any version have time zone offset in the admin. My servers are located in different time zones. All ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-20-2006, 12:19 PM
New Member
 
Join Date: Mar 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
cygnus
Default Time Zone

Hi
Does any version have time zone offset in the admin. My servers are located in different time zones.
All help / guidance / information will be appreciated.

Tany
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 09-25-2006, 09:07 AM
New Member
 
Join Date: Mar 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
cygnus
Default RE: Time Zone

Anyone who can help ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 12-02-2006, 09:10 AM
New Member
 
Join Date: Mar 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
cygnus
Default

Is there no one who can help me ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 12-02-2006, 10:29 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,331
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Does this look promising?

Maybe this is what you need?

http://www.oscommerce.com/community/...earch,timezone
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 12-05-2006, 07:51 AM
Molly's Avatar
Lurker
 
Join Date: Aug 2006
Location: USA
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Molly is on a distinguished road
Question help with this

I note the Time Zone mod isn't fully functional with orders, etc.

I am in the US-central and my host is UK. I need to minus 8 hours for orders, display dates, etc., to show correctly.

I have found this discussion from 2003:

Quote:
The following enables you to set a local time different to your hosts server. Particularly useful if your site is hosted in a different timezone to you and your customers. Adds the necessary number of hours to GMT.

Step 1.
Add the following to ../catalog/includes/application_top.php & ../admin/includes/application_top.php

Quote:
define ('TIME', strtotime(gmstrftime("%Y-%m-%d %H:%M:%S", strtotime ("+ 11 hour"))));
define ('NOW', gmdate ('Y-m-d H:i:s', time() + 11 *3600));
Step 2.
Replace the "11" with the number of hours your timezone is ahead of GMT (ie., Australian daylight savings time is 11 hours ahead of GMT)

Step 3.
In files where the date or time is displayed onscreen or written to the database, replace time() with TIME and now() with NOW ( ie., checkout_process.php, whos_online.php, login.php, orders.php etc.)
* For SQL queries replace now() with '" . NOW . "'

or:

Rather than mess with counting timezones, just let the system solve that for you.

putenv("TZ=US/Pacific");

Now all the times returned by the system will be in US/Pacific.

putenv() is really to display local order time in confirmation emails.
I found something at http://www.php.net/manual/en/function.putenv.php - bottom of the page.
'You would have to add a putenv() call to each page in which you wanted to change the timezone.'

I put my putenv() for the timezone into application_top.php
Is this information still relevant and how would I adapt to osCMax?

Until 1 month ago I only knew basic html so please take this into consideration!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 12-05-2006, 08:14 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,331
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Just make the changes as recommended. Should work with no issues.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 12-05-2006, 12:31 PM
Molly's Avatar
Lurker
 
Join Date: Aug 2006
Location: USA
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Molly is on a distinguished road
Default

Thanks, Mike.

Please bear with me here. I do not know anything about PHP. This is what I added to /catalog/includes/application_top.php:

Quote:
//define ('TIME', strtotime(gmstrftime("%m%d-%Y %H:%M:%S", strtotime ("- 8 hour"))));
define ('NOW', gmdate ('m-d-Y H:i:s', time() - 8 *3600));
Is this correct? So far I note no change in my display, but think I might need to change both application files to see a difference.

And, if so, where can I find admin/includes/application_top.php ??

I may put this on the back burner until I become more familiar with PHP and Max.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
zone Error namita osCommerce 2.2 Installation Help 5 02-10-2005 05:03 PM
Zone Shipping kmazumdar osCommerce 2.2 Modification Help 13 01-20-2005 04:41 AM
Tax Zone Problem obinet osCommerce 2.2 Installation Help 2 07-21-2004 12:10 PM
Zone Error lehanej osCommerce 2.2 Installation Help 0 02-17-2004 04:49 AM
Time Zone rd42 osCMax v1.7 Installation 1 01-08-2004 07:33 AM


All times are GMT -8. The time now is 06:29 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax