View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0001131 | v3.0 Release | [All Projects] General | public | 2012-04-22 22:24 | 2013-08-28 11:18 | ||||
Reporter | Korkonius | ||||||||
Assigned To | caseydk | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Product Version | |||||||||
Target Version | Fixed in Version | 3.0.0 | |||||||
Summary | 0001131: Using format string with time zone options causes crash in w2p_Utilities_Date | ||||||||
Description | I encountered this when working on bug 0001093 When attempting to use the %O and %T to get the timezone information sent in notification e-mails, w2p crashed with the error: Fatal error: Call to a member function getOffset() on a non-object in [myphpdir]\Web2Project\lib\PEAR\Date.php on line 330 Since %O would allow us to get the timezone names directly from format strings on date objects. This would be very useful when trying to keep track of time across a distributed team... | ||||||||
Additional Information | In my proposed e-mail patch i worked around this using the following to get the same info that %T should give from a format string: $timezoneObj = new Date_TimeZone($prefObj['TIMEZONE']); $tzString = $timezoneObj->getShortName(); | ||||||||
Tags | No tags attached. | ||||||||
Attached Files |
|
![]() |
|
Korkonius (reporter) 2012-06-05 22:05 |
I cannot assign issues but i am working on a fix for timezones now and that should hopefullt fix this as well... |
Korkonius (reporter) 2012-06-07 00:27 |
This issue has been resolved with these two commits: https://github.com/Korkonius/web2project/commit/1c5832eacd041cdcd4417a8375660a21c90ce077 https://github.com/Korkonius/web2project/commit/76a778e7de19b91f45733c6d8f610bdb3d222af0 However, the commits are part of a larger effort to refactor the date object and create a consistent standard for timezones... |
caseydk (administrator) 2012-08-02 21:45 |
Resolved here: https://github.com/caseysoftware/web2project/pull/123 |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2012-04-22 22:24 | Korkonius | New Issue | |
2012-06-05 22:05 | Korkonius | Note Added: 0002554 | |
2012-06-07 00:27 | Korkonius | Note Added: 0002555 | |
2012-08-02 21:45 | caseydk | Note Added: 0002618 | |
2012-08-02 21:45 | caseydk | Status | new => resolved |
2012-08-02 21:45 | caseydk | Resolution | open => fixed |
2012-08-02 21:45 | caseydk | Assigned To | => caseydk |
2013-08-28 11:14 | caseydk | Fixed in Version | => 3.0.0 |
2013-08-28 11:18 | caseydk | Status | resolved => closed |