Hy Xavier,

no your problem is not reproducable for me...
Read the comments of this issue if you are using a own error-handler.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

----- Original Message ----- From: "Xavier Vidal Piera" <[EMAIL PROTECTED]>
To: "Zend Framework General" <[email protected]>
Sent: Thursday, May 22, 2008 5:46 PM
Subject: [fw-general] Re: Date Warning


Moreover, i've found that it fails when you specify the year.... i'm digging
into the code to see if i can find this issue.

Try this code

$d = new Zend_Date();
$d->setDay(1);
$d->setMonth(1);
$d->setYear(1977);

Try the code with and without the last line (setYear). In my setup is
throwing the warning againg when i uncomment $d->setYear(1977);

On Thu, May 22, 2008 at 5:13 PM, Xavier Vidal Piera <[EMAIL PROTECTED]>
wrote:

Hi Thomas

Here it is that snippet :P

*in bootstrap:*

date_default_timezone_set('Europe/Madrid');

*In controller:

*$d = new Zend_Date();
$d->set('1977-01-01');

*And a warning it's thrown :*

<strong>[Sys Warning]</strong> timezone_open() [<a href='function.timezone-open'>function.timezone-open

</a>]: Unknown or bad timezone (1977)


Can you reproduce it?

In ZF 1.5.1 there was no warning, i remember....







>>Hy Xavier,

>>Setting the default timezone does not invoke the object of Zend_Date.
>>Please give a reproducable code snippet.

>>Generally you will receive such warnings when you try to do:
>>$date->setTimezone(somethingwhichisnotatimezone);
>>And also when you are using you own error-handler as those get also
>>suppressed warnings.

>>Greetings
>>Thomas
>>I18N Team Leader

----- Original Message -----
From: "Xavier Vidal Piera" <[EMAIL PROTECTED]<http://www.nabble.com/user/SendEmail.jtp?type=post&post=17374505&i=0>>

To: "Zend Framework General" <[EMAIL PROTECTED]<http://www.nabble.com/user/SendEmail.jtp?type=post&post=17374505&i=1>>

Sent: Wednesday, May 21, 2008 6:37 PM
Subject: [fw-general] Date warning


> When i'm using Zend_Date objects, now, with ZF 1.5.2 i'm getting this
> warning:
>
> timezone_open() function.timezone-open: Unknown or bad timezone (1977)
>
>
> In my bootstrap i have this line:
>
> date_default_timezone_set('Europe/Madrid');
>
> My PHP version is 5.2.3
>
> The timezone is supported as PHP site says
> http://es2.php.net/manual/es/timezones.europe.php
>
> Anyone knows how to solve this and remove that warning?
>
> Thanks
>
> --
> Xavier Vidal Piera
> Enginyer Tècnic Informàtic de Gestió
> Tècnic Especialista Informàtic d'equips
> [EMAIL 
PROTECTED]<http://www.nabble.com/user/SendEmail.jtp?type=post&post=17374505&i=2>
> [EMAIL 
PROTECTED]<http://www.nabble.com/user/SendEmail.jtp?type=post&post=17374505&i=3>
> http://web.xaviervidal.net
> 610.68.41.78
>
... [show rest of quote<http://www.nabble.com/Date-warning-td17373083.html#>
]


--
Xavier Vidal Piera
Enginyer Tècnic Informàtic de Gestió
Tècnic Especialista Informàtic d'equips
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://web.xaviervidal.net
610.68.41.78




--
Xavier Vidal Piera
Enginyer Tècnic Informàtic de Gestió
Tècnic Especialista Informàtic d'equips
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://web.xaviervidal.net
610.68.41.78


Reply via email to