[issue29099] sqlite3 timestamp converter cannot handle timezone

2016-12-29 Thread Bozo Kopic
Changes by Bozo Kopic <bozo.ko...@gmail.com>: Added file: http://bugs.python.org/file46081/sqlite3-2.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue29099] sqlite3 timestamp converter cannot handle timezone

2016-12-29 Thread Bozo Kopic
Changes by Bozo Kopic <bozo.ko...@gmail.com>: Removed file: http://bugs.python.org/file46075/sqlite3-2.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue29099] sqlite3 timestamp converter cannot handle timezone

2016-12-29 Thread Bozo Kopic
Changes by Bozo Kopic <bozo.ko...@gmail.com>: Added file: http://bugs.python.org/file46075/sqlite3-2.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue29099] sqlite3 timestamp converter cannot handle timezone

2016-12-29 Thread Bozo Kopic
Changes by Bozo Kopic <bozo.ko...@gmail.com>: Removed file: http://bugs.python.org/file46074/sqlite3-2.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue29099] sqlite3 timestamp converter cannot handle timezone

2016-12-29 Thread Bozo Kopic
Bozo Kopic added the comment: I'm providing new patch that adds support for parsing timezone information. Tests are included. -- Added file: http://bugs.python.org/file46074/sqlite3-2.patch ___ Python tracker <rep...@bugs.python.org>

[issue29099] sqlite3 timestamp converter cannot handle timezone

2016-12-29 Thread Bozo Kopic
Bozo Kopic added the comment: Yes, that is correct. Timezone information is discarded. Submitted patch only resolves occurrence of ValueError. Is additional patch that enables parsing of timezone required? -- ___ Python tracker <

[issue29099] sqlite3 timestamp converter ValueError

2016-12-28 Thread Bozo Kopic
New submission from Bozo Kopic: Current convert_timestamp function raises exception when parsing timestamps that contain timezone information and have microsecond set to zero. Patch for this behavior is included. Example script that demonstrates this problem: import sys import datetime