MySQLdb1 icon indicating copy to clipboard operation
MySQLdb1 copied to clipboard

warning at MySQLdb.times.format_TIMESTAMP()

Open nekoya opened this issue 12 years ago • 1 comments

I encounter some warnings since I updated to MySQLdb 1.2.4 with datetime objects.

http://sourceforge.net/p/mysql-python/svn/659/

That update affected to some types of datetime.

>>> import datetime, pytz
>>> datetime.datetime(2013, 1, 2, 23, 30, 10, 12345, tzinfo=pytz.utc).isoformat()
'2013-01-02T23:30:10.012345+00:00'

datetime.datetime.isoformat() is not compatible with strftime. It includes microseconds and utcoffset.

What should I do?

nekoya avatar Jul 03 '13 02:07 nekoya

I suspect the current master branch might fix this, but I could be wrong.

farcepest avatar Nov 21 '13 21:11 farcepest