[Precise] bug_task.date_created is returning 'unicode' objects instead of 'datetime' objects
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
ProcVersionSign
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)
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: python-launchpadlib
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in python-launchpadlib (Ubuntu): | |
importance: | Undecided → Critical |
#!/usr/bin/python launchpad import Launchpad
from launchpadlib.
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: datetime( 2012, 2, 7, 22, 22, 1, 388303, tzinfo=TimeZone(0))
> python broken-date.py
datetime.
When run on Precise: 02-07T22: 22:01.388303+ 00:00'
> python broken-date.py
u'2012-