Forums / All Other Contributions/Addons / Time Zone Offset Problem

Time Zone Offset Problem

Started by adamboyle on 10 Jul 2006, 3:26 PM · Views: 13,157

Results 21 to 36 of 36
29 Jun 2010, 6:31 PM
#21
bear1728 avatar

bear1728

New Zenner

Join Date:
Jul 2009
Posts:
86
Plugin Contributions:
0

Time Zone Offset Problem

hello, i installed the mod GOB Package Trackers from http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_51&products_id=1427, when i update the order status from admin, the time i set for my site is replaced by the server time for date added in status table.
i tried changing now() to date_add(now(), INTERVAL " . TIME_ZONE_OFFSET . " HOUR) in admin/orders.php and /admin/package_trackers.php, but it still doesn't work.
could you help ? thanks.

30 Jun 2010, 1:17 AM
#22
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Time Zone Offset Problem

bear1728:

hello, i installed the mod GOB Package Trackers from http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_51&products_id=1427, when i update the order status from admin, the time i set for my site is replaced by the server time for date added in status table.
i tried changing now() to date_add(now(), INTERVAL " . TIME_ZONE_OFFSET . " HOUR) in admin/orders.php and /admin/package_trackers.php, but it still doesn't work.
could you help ? thanks.

That looks about right
Did you change it in all 4 places in that file?

17 Dec 2010, 10:08 PM
#23
martyng avatar

martyng

New Zenner

Join Date:
Apr 2008
Posts:
19
Plugin Contributions:
0

Re: Time Zone Offset Problem

badger64:

Hi all

I know this thread is abit old but my host is based in the states and I'm in the uk.

Put this code in the .htaccess in the root of your site.

SetEnv TZ Europe/London

Works for me. Hope it helps.

Rgds
Badger

This simple mod works perfectly for me too :smile:

Many thanks Badger

3 Jan 2011, 3:36 AM
#24
kcky avatar

kcky

New Zenner

Join Date:
Dec 2010
Posts:
5
Plugin Contributions:
0

Re: Time Zone Offset Problem

thanks to newfu post. I finally get my zencart time zone correct.

10 Jan 2011, 11:19 PM
#25
rlexyd avatar

rlexyd

Zen Follower

Join Date:
Nov 2006
Location:
Sydney, Australia
Posts:
495
Plugin Contributions:
0

Re: Time Zone Offset Problem

Hope someone can help.

I'm based in Australia and have the Time Zone Mod installed on 1.3.9g.

My Server time is correct but my database is showing us time stamp?

How do I correct date/time for the database?

Regards,

*Zen Cart eCommerce Solution - Putting the Dream of Owning an Online Business within reach of anyone!

11 Jan 2011, 12:03 AM
#26
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Time Zone Offset Problem

rlexyd:

Hope someone can help.

I'm based in Australia and have the Time Zone Mod installed on 1.3.9g.

My Server time is correct but my database is showing us time stamp?

How do I correct date/time for the database?

Regards,

The last working version is 139d
You would have to merge the mod yourself for it to work with 139g

I have not updated this mod as
I am working on a simpler replacement mod
So.... Watch this space

11 Jan 2011, 12:23 AM
#27
rlexyd avatar

rlexyd

Zen Follower

Join Date:
Nov 2006
Location:
Sydney, Australia
Posts:
495
Plugin Contributions:
0

Re: Time Zone Offset Problem

Thanks for that.

A quick question, which files need to be merged?

I tired winmerge but since I have made several other changes to certain files it is showing that the whole file needs merging and it's hard to see which timezone offset additions need to be merged in the 1.3.9f.

Regards,

*Zen Cart eCommerce Solution - Putting the Dream of Owning an Online Business within reach of anyone!

11 Jan 2011, 1:46 AM
#28
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Time Zone Offset Problem

rlexyd:

Thanks for that.

A quick question, which files need to be merged?

I tired winmerge but since I have made several other changes to certain files it is showing that the whole file needs merging and it's hard to see which timezone offset additions need to be merged in the 1.3.9f.

Regards,

Assuming you are using the 139d mod version as a starting point
Download the full zen139d fileset
Use winmerge to see what the actual mods have been done to these files

Then merge these difference with the version you are using, 139f

btw Why not update to 139h first?

11 Jan 2011, 2:10 PM
#29
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,022
Plugin Contributions:
2

Re: Time Zone Offset Problem

Happy New Year Gilby

I am in the midst of upgrading my store with mods Edit_Orders_3.03 and SuperOrders_3 (3.01?), wherein provision is made to create an audit trail of the date-time of any adjustments made to orders.

Due to the somewhat complex nature of these mods, I am wondering whether your new simplified version of TZO will remove the necessity of having to tinker further with these mods.

Thanks in advance.

11 Jan 2011, 9:41 PM
#30
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Time Zone Offset Problem

dw08gm:

Happy New Year Gilby

I am in the midst of upgrading my store with mods Edit_Orders_3.03 and SuperOrders_3 (3.01?), wherein provision is made to create an audit trail of the date-time of any adjustments made to orders.

Due to the somewhat complex nature of these mods, I am wondering whether your new simplified version of TZO will remove the necessity of having to tinker further with these mods.

Thanks in advance.

Yes it does.
No merging required of any other mods.
It fixes the problem at its source
Still testing to verify....

13 Jan 2011, 11:00 PM
#31
colfax avatar

colfax

New Zenner

Join Date:
Jan 2011
Posts:
3
Plugin Contributions:
0

Re: Time Zone Offset Problem

New user -- just finished installing and configuring 139h.

Noted the time zone error during testing and found this thread.

Should I wait before applying the TZ add-on because you (Gilby) are about to provide an update yourself?

Our store does not go live for another two weeks so I would rather apply this fix once if you know it will be available.

Thanks

13 Jan 2011, 11:03 PM
#32
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Time Zone Offset Problem

Colfax:

New user -- just finished installing and configuring 139h.

Noted the time zone error during testing and found this thread.

Should I wait before applying the TZ add-on because you (Gilby) are about to provide an update yourself?

Our store does not go live for another two weeks so I would rather apply this fix once if you know it will be available.

Thanks

Hopefully, it should be available next week

18 Feb 2011, 8:29 AM
#33
inthecup avatar

inthecup

New Zenner

Join Date:
Jan 2011
Location:
London
Posts:
19
Plugin Contributions:
0

Re: Time Zone Offset Problem

Hi,

Great mod, all worked fine for the UK, install and time update seemed to easy to do :clap:

One question, will the time update itself when our clocks go to BST?

Best Regards,

Dave

*Best Regards, Dave

https://www.theonlineproshop.co.uk*

18 Feb 2011, 12:55 PM
#34
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Time Zone Offset Problem

inthecup:

Hi,

Great mod, all worked fine for the UK, install and time update seemed to easy to do :clap:

One question, will the time update itself when our clocks go to BST?

Best Regards,

Dave

Yes it should.
I assume you are using a version of zen up to 1.3.9d
This mod is not supported after this version

Please use the new replacement mod instead Time Zone Fix.

The new mod is:
Much simpler and overwrites only 1 core file.
When working it fixes all known Time Zone problems

There is a new Support Thread for this new mod.

There is no need to update an existing Time Zone Offset mod if it is working fine for you.

You should use the new Time Zone Fix mod.
If updating to a new version of Zen-Cart.
And for all new Zen-Cart installs.

18 Feb 2011, 4:04 PM
#35
inthecup avatar

inthecup

New Zenner

Join Date:
Jan 2011
Location:
London
Posts:
19
Plugin Contributions:
0

Re: Time Zone Offset Problem

Hi,

I used the new version of the fix for version 1.3.9h, I have now noticed that even though my admin time is correct the time on the updates for orders is wrong by about -6 hours,

Any thoughts ???

Dave

*Best Regards, Dave

https://www.theonlineproshop.co.uk*

18 Feb 2011, 5:10 PM
#36
inthecup avatar

inthecup

New Zenner

Join Date:
Jan 2011
Location:
London
Posts:
19
Plugin Contributions:
0

Re: Time Zone Offset Problem

inthecup:

Hi,

I used the new version of the fix for version 1.3.9h, I have now noticed that even though my admin time is correct the time on the updates for orders is wrong by about -6 hours,

Any thoughts ???

Dave

:clap:Panic over, I did not complete stage 3 of the fix.....I have now and all works fine in v1.3.9h

Great fix :yes:

*Best Regards, Dave

https://www.theonlineproshop.co.uk*