Make DateTime objects use naieve timezone

Bug #1322033 reported by Thomi Richards
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Autopilot
Fix Released
Critical
Unassigned
autopilot (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

If an app is storing a local date time, autopilot-qt will export it as seconds since the epoch, UTC time. Qml apps don't seem to be able to set the timezone, so Qt assumes the date is in UTC. On the python side however, we ask python for a date time object and assume that the timestamp is UTC. This means that the times we get client-side are all incorrect.

To fix this, we need to not assume that the timestamp is in UTC, and instead just ignore the timezone factor. This may cause us problems down the road, but it seems like a quick fix for now.

Related branches

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:~autopilot/autopilot/temp-dev at revision 512, scheduled for release in autopilot, milestone Unknown

Changed in autopilot:
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopilot - 1.5.0+14.10.20140526.1-0ubuntu1

---------------
autopilot (1.5.0+14.10.20140526.1-0ubuntu1) utopic; urgency=low

  [ Tarmac ]
  * Add fixtures for launching applications. (LP: #1322033, #1291531,
    #1320149)
 -- Ubuntu daily release <email address hidden> Mon, 26 May 2014 12:50:10 +0000

Changed in autopilot (Ubuntu):
status: New → Fix Released
Changed in autopilot:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.