date.timezone

Locked

Started by brandongay on 3 Aug 2010, 11:54 PM · Views: 31,438

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
3 Aug 2010, 11:54 PM
#1
brandongay avatar

brandongay

New Zenner

Join Date:
Jul 2005
Posts:
4
Plugin Contributions:
0

date.timezone

Zen 1.3.9e
Fresh Install
Server 2008
PHP 5.3

When going through the install, and I click here from the first page, I get "ERROR: date.timezone not set in php.ini. Please contact your hosting company to set the timezone in the server PHP configuration before continuing." I have done what I thought was the editing of the php.ini in the PHP directory to set the date.timezone to:

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone = "America/Chicago"

I have tried different combinations, and restarted the server a few times after changes. I still get the same result. I am sure it is something that is very simple, but I am a newbie to PHP.

Any help is apprieciated.

4 Aug 2010, 1:25 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: date.timezone

Try taking out the ";" from the beginning of the line, since it's making the line get treated as a comment instead of actually using what you've put there.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Aug 2010, 1:48 AM
#3
brandongay avatar

brandongay

New Zenner

Join Date:
Jul 2005
Posts:
4
Plugin Contributions:
0

Re: date.timezone

I thought I had done that. But that fixed it. Thanks so much.

23 Sep 2010, 12:06 AM
#4
yuto avatar

yuto

New Zenner

Join Date:
Sep 2010
Posts:
6
Plugin Contributions:
0

Re: date.timezone

I am having the same issue. My problem is not fixed even though I modified php.ini. In fact it seems like timezone is set properly because I can see default time zone is set, if I do phpinfo();

I have been working on this for a bit of time, but I haven't been able to install zen-cart yet. Does anyone have any idea?

23 Sep 2010, 12:41 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: date.timezone

If you're having problems with the PHP configuration on your server, you should be talking to your hosting company for help.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 Jan 2011, 10:24 PM
#6
shawinder avatar

shawinder

New Zenner

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

Re: date.timezone

hi yuto,

you can fix it by going to zc_install/includes/application_top.php and add following line on the top:

ini_set('date.timezone', 'America/Vancouver');

22 Jan 2011, 9:10 PM
#7
jwr51 avatar

jwr51

New Zenner

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

Re: date.timezone

:smile: Thank you.
(Remember to restart your server to activate the new settings).

9 May 2011, 10:52 AM
#8
gunnel avatar

gunnel

New Zenner

Join Date:
Jan 2011
Location:
Sweden
Posts:
12
Plugin Contributions:
0

Re: date.timezone

shawinder:

hi yuto,

you can fix it by going to zc_install/includes/application_top.php and add following line on the top:

ini_set('date.timezone', 'America/Vancouver');

Thank you, thank you, thank you!:clap: This solved all my trobles.

9 May 2011, 7:34 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: date.timezone

It's much better to have your hosting company properly configure the server.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Oct 2011, 7:20 PM
#10
mikehr avatar

mikehr

New Zenner

Join Date:
Aug 2009
Posts:
13
Plugin Contributions:
0

Re: date.timezone

can you help me with this error, I am trying to install Zencart and I´m getting this error message. Thank you very much. I´ve been searching for an answer in forum but no success. THX in advance

ERROR: date.timezone not set in php.ini. Please contact your hosting company to set the timezone in the server PHP configuration before continuing.

3 Oct 2011, 8:45 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: date.timezone

It means exactly what it says.
Your server's PHP configuration doesn't have date.timezone set properly.
You, or your hosting company, need to correct that. Contact them for help with fixing their configuration problem.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Oct 2011, 7:52 AM
#12
mikehr avatar

mikehr

New Zenner

Join Date:
Aug 2009
Posts:
13
Plugin Contributions:
0

Re: date.timezone

Thank you, I thought if any other idea could not be here. I have solved it. I know the best way is to correct server. Thank you for quick reply.

24 Oct 2011, 1:10 PM
#13
jonbonse avatar

jonbonse

New Zenner

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

Re: date.timezone

DrByte:

It means exactly what it says.
Your server's PHP configuration doesn't have date.timezone set properly.
You, or your hosting company, need to correct that. Contact them for help with fixing their configuration problem.

Hi

I have the same problem and my hosting company 1and1 say there is no php.ini file to configure???!!!!

Where would the php.ini file be located?

Many thanks!

24 Oct 2011, 1:14 PM
#14
jonbonse avatar

jonbonse

New Zenner

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

Re: date.timezone

yuto:

I am having the same issue. My problem is not fixed even though I modified php.ini. In fact it seems like timezone is set properly because I can see default time zone is set, if I do phpinfo();

I have been working on this for a bit of time, but I haven't been able to install zen-cart yet. Does anyone have any idea?

Hi

I can't find php.ini to modify. . . .

Can you let me know where to find it????

My hosting company 1and1 say thre is no php.ini file in my catalog folder!!!

24 Oct 2011, 1:15 PM
#15
jonbonse avatar

jonbonse

New Zenner

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

Re: date.timezone

shawinder:

hi yuto,

you can fix it by going to zc_install/includes/application_top.php and add following line on the top:

ini_set('date.timezone', 'America/Vancouver');

Hi!

What do you mean add the line on the top?

Thanks!

24 Oct 2011, 7:00 PM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: date.timezone

Talk to your hosting company and ask them to tell you which method they prefer you to use: either php.ini or .htaccess ... and ask them for specific instructions on how to do that for YOUR site.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Oct 2011, 3:36 PM
#17
jbdougherty avatar

jbdougherty

New Zenner

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

Re: date.timezone

jonbonse:

Hi!

What do you mean add the line on the top?

Thanks!

note - I am replicating my "real world" cart to be able to customize a template on an installation on my own computer.

<?php
/**
 * @package Installer
 * @access private
 * @copyright Copyright 2003-2010 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: application_top.php 17117 2010-07-31 18:19:41Z drbyte $
 */
/**
 * ensure odd settings are disabled and set required defaults
 */
//@ini_set("session.auto_start","0");
//@ini_set("session.use_trans_sid","0");
[B]@ini_set('date.timezone', 'America/Vancouver');[/B]
@ini_set("arg_separator.output","&");
/**
 * Set the local configuration parameters - mainly for developers
 */
if (file_exists('includes/local/configure.php')) {
  /**
   * load any local(user created) configure file.
   */
  include('includes/local/configure.php');
}
/**