[Precise] bug_task.date_created is returning 'unicode' objects instead of 'datetime' objects

Bug #929068 reported by Brad Figg
This bug report is a duplicate of:  Bug #924240: datetime interpretation changed. Edit Remove
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-wadllib (Ubuntu)
Confirmed
Critical
Unassigned

Bug Description

I'm not possitive that it's a python-launchpadlib issue but I have to start somewhere.

This is only happening on Precise and only recently. On Jan. 31 the script was working fine but on Feb. 6 it broke.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: python-launchpadlib 1.9.12-1
ProcVersionSignature: Ubuntu 3.2.0-14.23-generic 3.2.3
Uname: Linux 3.2.0-14-generic x86_64
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Wed Feb 8 11:37:41 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110913)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: python-launchpadlib
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Brad Figg (brad-figg) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote :

#!/usr/bin/python
from launchpadlib.launchpad import Launchpad

lp = Launchpad.login_with('broken-date', 'production')
b = lp.bugs[918807]
t = b.bug_tasks[0]
dc = t.date_created
print repr(dc)

When that script is run on Oneiric:
> python broken-date.py
datetime.datetime(2012, 2, 7, 22, 22, 1, 388303, tzinfo=TimeZone(0))

When run on Precise:
> python broken-date.py
u'2012-02-07T22:22:01.388303+00:00'

Bryce Harrington (bryce)
Changed in python-launchpadlib (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Brian Murray (brian-murray) wrote :

I've noticed this too. However, launchpadlib hasn't been uploaded recently.

Changed in python-launchpadlib (Ubuntu):
status: New → Confirmed
Revision history for this message
Robert Hooker (sarvatt) wrote :

Downgraded to python-wadllib (1.2.0+ds-2build1) and it works again, reassigning package

affects: python-launchpadlib (Ubuntu) → python-wadllib (Ubuntu)
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.