Ticket #775 (closed defect: fixed)
QDateTime constructor buggy
| Reported by: | vakopian | Owned by: | |
|---|---|---|---|
| Priority: | shipstopper | Milestone: | 2.1 |
| Component: | Framework | Version: | 2.0.2 Stable |
| Keywords: | Cc: |
Description
As discussed in http://qcu.be/content/qdatetime-timezone-issue
$strTime = '2005-05-05T11:05:24+0700'; print $strTime."\n"; // show that DateTime handles everything correctly $y = new Datetime($strTime); print $y->format(DateTime::ISO8601)." - DateTime\n"; // and QDateTime fails miserably $x = new QDatetime($strTime); print $x->format(DateTime::ISO8601)." - QDateTime\n";
This produces
<code>
2005-05-05T11:05:24+0700
2005-05-05T11:05:24+0700 - DateTime?
2005-05-04T21:05:24-0700 - QDateTime
</code>
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

