ZF-3150: Zend_Date::getSunrise() and Zend_Date::getSunset()
Description
Functions
return "1970-12-08T00:00:00-03:00" for any date/time and city.
The problem occoured in revision 2729:
Where it says
does not recognize the constant).
Functions
return "1970-12-08T00:00:00-03:00" for any date/time and city.
The problem occoured in revision 2729:
Where it says
does not recognize the constant).
Comments
Posted by Thomas Weidner (thomas) on 2008-04-19T04:40:22.000+0000
Interesting...
I am doing this:
and it returns this:
So in my eyes it works.
I think you made a mistake by using getSunset as static which is not true. This should throw an error by php as this method is not static and needs an instance.
If not, please give a reproducable example, so we can verify the problem.
Posted by Paulo Roberto Maurici Junior (nadameu) on 2008-04-19T14:40:02.000+0000
Actually I didn't use the static method.
But now I tested it in a separate file, outside my MVC, and it worked.
The problem only happens when i use the following code before the calculation:
```
Shouldn't it still be ok to do date calculations even though i set 'format_type' to 'php' ?
By the way, thanks for the quick response.
Posted by Thomas Weidner (thomas) on 2008-04-19T15:24:49.000+0000
Fixed with r9258
Posted by Wil Sinclair (wil) on 2008-09-02T10:38:58.000+0000
Updating for the 1.6.0 release.