Forums / All Other Contributions/Addons / Time Zone Fix Support Thread

Time Zone Fix Support Thread

Started by gilby on 14 Feb 2011, 11:46 AM · Views: 28,393

Results 21 to 40 of 83
11 Aug 2011, 1:44 AM
#21
andrewnguyen avatar

andrewnguyen

New Zenner

Join Date:
Mar 2011
Location:
VIC, AU
Posts:
64
Plugin Contributions:
2

Time Zone Fix Support Thread

Hi Gilby,

I'm been running your mode perfectly until now. The time is change again.

I'm in Australia. I've try to re-install the mode a couple times and it still not working.

Maybe the time server http://php.net/manual/en/timezones.php is not up-to-date. Not sure.

Is there other ways to fix this.

11 Aug 2011, 3:29 AM
#22
gilby avatar

gilby

Totally Zenned

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

Re: Time Zone Fix Support Thread

andrewnguyen:

Hi Gilby,

I'm been running your mode perfectly until now. The time is change again.
What has changed about your website. Upgraded, installed new mods etc?

andrewnguyen:

I'm in Australia. I've try to re-install the mode a couple times and it still not working.
I am in Oz as well and it works fine

andrewnguyen:

Maybe the time server http://php.net/manual/en/timezones.php is not up-to-date. Not sure.

Is there other ways to fix this.
Post the contents of your time_offset.php file
This should be the SAME in BOTH
admin\includes\extra_configures (back end of store)
and
includes\extra_configures (front of store)

13 Aug 2011, 2:23 PM
#23
cngadgets avatar

cngadgets

New Zenner

Join Date:
Jul 2008
Posts:
2
Plugin Contributions:
0

Re: Time Zone Fix Support Thread

other solution just Edit the PHP.INI file to specify the correct timezone will be OK...if you use PHP5

Edit or Add this line to the php.ini:

date.timezone = "America/Denver";

Use the appropriate option at http://php.net/timezones

13 Aug 2011, 11:21 PM
#24
gilby avatar

gilby

Totally Zenned

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

Re: Time Zone Fix Support Thread

cngadgets:

other solution just Edit the PHP.INI file to specify the correct timezone will be OK...if you use PHP5

Edit or Add this line to the php.ini:

date.timezone = "America/Denver";

Use the appropriate option at http://php.net/timezones

That will set the "php" time
but you also need to set the "mysql" database time!

21 Aug 2011, 4:54 PM
#25
andrewnguyen avatar

andrewnguyen

New Zenner

Join Date:
Mar 2011
Location:
VIC, AU
Posts:
64
Plugin Contributions:
2

Re: Time Zone Fix Support Thread

Hi gilby,

I'm using your Time Zone Fix and the only file i have is time_zone_fix.php.

and the codes:

<?php 
// Full list of timezones here: http://php.net/manual/en/timezones.php
//
// You can modify the TZ (Time Zone) by using a named Country/City
// eg:
// TZ=America/Los_Angeles
// TZ=America/Denver;
// TZ=America/Chicago
// TZ=America/Costa_Rica;

putenv ('TZ=Australia/Melbourne'); 

?>

The code is still the same when i first installed it.

and the query_factory.php is still the same.

The time i get Sun, 21 Aug 2011 11:38:37** -0500GMT**.

Maybe i've have installed some new mod, but don't know where to start. :blush:. Please help.

21 Aug 2011, 11:28 PM
#26
gilby avatar

gilby

Totally Zenned

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

Re: Time Zone Fix Support Thread

andrewnguyen:

Hi gilby,

I'm using your Time Zone Fix and the only file i have is time_zone_fix.php.

The code is still the same when i first installed it.

and the query_factory.php is still the same.

The time i get Sun, 21 Aug 2011 11:38:37** -0500GMT**.

Maybe i've have installed some new mod, but don't know where to start. :blush:. Please help.

Well there is only 3 files to this mod...
So checking that the correct version on the file is in the correct place shouldn't take too long.
Remember the renamed YOUR_RENAMED_ADMIN directory needs to be altered.

I notice you mentioned that you started having problems just before you noticed you had been hacked.
Could be something left over from this?...

Otherwise what has your host changed on your server?

22 Aug 2011, 7:34 AM
#27
andrewnguyen avatar

andrewnguyen

New Zenner

Join Date:
Mar 2011
Location:
VIC, AU
Posts:
64
Plugin Contributions:
2

Re: Time Zone Fix Support Thread

I haven't check with my host about this. I give this a try. Thanks gilby. Will update you about it.

31 Aug 2011, 9:17 AM
#28
laiwis avatar

laiwis

New Zenner

Join Date:
Apr 2007
Posts:
11
Plugin Contributions:
0

Re: Time Zone Fix Support Thread

How can I set the summer time and winter time?
:oops:

31 Aug 2011, 9:47 AM
#29
gilby avatar

gilby

Totally Zenned

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

Re: Time Zone Fix Support Thread

Laiwis:

How can I set the summer time and winter time?
:oops:

Well..... You don't need to....
This mod relies on the php on your server using an up to date list of time zones throughtout the world and should automagically set those times.

If you are finding that it isn't following summer and winter time
then your server is not set up correctly with the up to date list of time zones or you have chosen a time zone that doesn't follow that version of summer/winter time.

You may need to choose a different more relevent time zone for your area.

12 Sep 2011, 6:38 PM
#30
plexy avatar

plexy

New Zenner

Join Date:
Jul 2011
Posts:
16
Plugin Contributions:
0

Re: Time Zone Fix Support Thread

I just can't get this mod to work. Tried different timezones just to test if the other timezones works. But nothing, the TZ remains the same. :(

Anyone else who had this problem and solved it?

I spoke with my host and they said it's either something wrong with the script or I did something wrong adding it.
I defenately added the files correctly.

29 Sep 2011, 6:17 PM
#31
johndavison avatar

johndavison

New Zenner

Join Date:
Sep 2011
Posts:
2
Plugin Contributions:
0

Re: Time Zone Fix Support Thread

PleXy:

I just can't get this mod to work. Tried different timezones just to test if the other timezones works. But nothing, the TZ remains the same. :(

Anyone else who had this problem and solved it?

I spoke with my host and they said it's either something wrong with the script or I did something wrong adding it.
I defenately added the files correctly.

I'm having issues too.

I'm on 1.3.9h and followed the installation instructions exactly.

Out of interest, what host do you use?

Can this issues with certain hosts? I'm with One.com.

30 Sep 2011, 9:09 AM
#32
gilby avatar

gilby

Totally Zenned

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

Re: Time Zone Fix Support Thread

johndavison:

I'm having issues too.

I'm on 1.3.9h and followed the installation instructions exactly.

Out of interest, what host do you use?

Can this issues with certain hosts? I'm with One.com.

Works with most tested linux hosts
I can't tell from their website if they are linux or MS

By the way > I'm having issues too.really give us NO info to work with.

What type of server are you on?
What have you done?
How have you installed it?
Which version of zen-cart?
Which version of this mod did you install?
What happens?

In the "readme" there are 3 steps and checks that you should do before proceeding to the next step.
What step does it beak on and how does it break?

8 Nov 2011, 2:56 AM
#33
vatche avatar

vatche

New Zenner

Join Date:
Nov 2011
Posts:
5
Plugin Contributions:
0

Re: Time Zone Fix Support Thread

Hi,

I have ZC 1.3.9h installed and working.

I downloaded the zip file, extracted and edited the 2 files time_zone_fix.php, even thought the doc refers to time_offset.php, uploaded each respective files (3 of them) to the correct folders on the server.

I see no change in the date/time on my admin home page (section just under the top header.

What am I doing wrong? :(

Thanks.

8 Nov 2011, 6:26 AM
#34
gilby avatar

gilby

Totally Zenned

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

Re: Time Zone Fix Support Thread

Vatche:

Hi,

I have ZC 1.3.9h installed and working.

I downloaded the zip file, extracted and edited the 2 files time_zone_fix.php, even thought the doc refers to time_offset.php, uploaded each respective files (3 of them) to the correct folders on the server.

I see no change in the date/time on my admin home page (section just under the top header.

What am I doing wrong? :(

Thanks.

Before uploading did you rename the YOUR_RENAMED_ADMIN directory so that its the same as whatever your actual admin name is?
Are you running this local or is it live on a linux server?
Post the contents of one of your time_zone_fix.php files?

9 Nov 2011, 10:50 PM
#35
vatche avatar

vatche

New Zenner

Join Date:
Nov 2011
Posts:
5
Plugin Contributions:
0

Re: Time Zone Fix Support Thread

gilby:

Before uploading did you rename the YOUR_RENAMED_ADMIN directory so that its the same as whatever your actual admin name is?
Are you running this local or is it live on a linux server?
Post the contents of one of your time_zone_fix.php files?

I basically edited the files, then ftp each php file to the server at the correct server folders. (linux)

File located locally:
tzf_v1.00\139gh\YOUR_RENAMES_ADMIN\includes\extra_configures\time_zone_fix.php

<?php // Full list of timezones here: <http://php.net/manual/en/timezones.php> // // You can modify the TZ (Time Zone) by using a named Country/City // eg: // TZ=America/Los_Angeles // TZ=America/Denver; // TZ=America/Chicago // TZ=America/Costa_Rica; putenv ('TZ=Australia/Sydney'); ?>

Uploaded to server at:
secret_admin\includes\extra_configures\time_zone_fix.php

Done the same with the other 2 files.

Thanks for the help. :clap:

9 Nov 2011, 11:11 PM
#36
gilby avatar

gilby

Totally Zenned

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

Re: Time Zone Fix Support Thread

goto admin -> version
Search near the bottom in the "Environment" section
Confirm that there is a TZ variable there
and its value is Australia/Sydney

9 Nov 2011, 11:19 PM
#37
vatche avatar

vatche

New Zenner

Join Date:
Nov 2011
Posts:
5
Plugin Contributions:
0

Re: Time Zone Fix Support Thread

gilby:

goto admin -> version
Search near the bottom in the "Environment" section
Confirm that there is a TZ variable there
and its value is Australia/Sydney

Just checked, but no, there is no Environment variable TZ.

Does this mean the file time_zome_fix.php is not being called?

Thanks.

10 Nov 2011, 12:31 AM
#38
vatche avatar

vatche

New Zenner

Join Date:
Nov 2011
Posts:
5
Plugin Contributions:
0

Re: Time Zone Fix Support Thread

Hi,

Here is a message when I put the code in index.php

Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list.

Damn! :(

10 Nov 2011, 12:55 AM
#39
vatche avatar

vatche

New Zenner

Join Date:
Nov 2011
Posts:
5
Plugin Contributions:
0

Re: Time Zone Fix Support Thread

All good now, got the hosting provider to allow it and now it is working.

Thanks for your top support! :clap:

10 Nov 2011, 5:11 AM
#40
gilby avatar

gilby

Totally Zenned

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

Re: Time Zone Fix Support Thread

Vatche:

Hi,

Here is a message when I put the code in index.php

Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list.

Damn! :(

Glad you got it sorted

You may have other problems in the future
Quoting from What are the Server requirements to run Zen Cart?

"safe_mode off recommended, also for security reasons "