Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] timezone for setup

Subject: COmanage Developers List

List archive

[comanage-dev] timezone for setup


Chronological Thread 
  • From: Marie Huynh <>
  • To: Benn Oshrin <>, comanage-dev <>
  • Subject: [comanage-dev] timezone for setup
  • Date: Thu, 24 Jan 2013 00:04:56 -0800

Hi,

I am getting many date errors in setup from a fresh checkout of r406:

Welcome to CakePHP v2.0.5 Console
---------------------------------------------------------------
App : app
Path: /Applications/MAMP/htdocs/r406/trunk/app/
---------------------------------------------------------------
Enter administrator's given name  
> marie
Enter administrator's family name  
> huynh
Enter administrator's login username  
> test
Enter >= 40 character security salt or blank for random  
>   
Enter >= 29 digit security seed or blank for random  
- Creating users view
- Creating COmanage CO
Warning Error: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in [/Applications/MAMP/htdocs/r406/trunk/lib/Cake/Model/Model.php, line 1573]

Warning Error: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in [/Applications/MAMP/htdocs/r406/trunk/lib/Cake/Model/Model.php, line 1573]

etc.

Is this related to this bug?

I don't see much on the page describing what the problem was there.

Config/core.php contains this:
/**
 * Uncomment this line and correct your server timezone to fix 
 * any date & time related errors.
 */
//date_default_timezone_set('UTC');

Why is that commented out?  I don't see anything in the installation docs about it but uncommenting it or putting in 
date_default_timezone_set('America/Los_Angeles');
solves that problem.  Shouldn't there be a default?  Or should I just add this to the docs?

Marie



Archive powered by MHonArc 2.6.16.

Top of Page