My fetched rows from rethinkdb cluster include date objects with timezones. Here's an example of one:
ipython> dt
datetime.datetime(2015, 12, 18, 0, 22, 4, 644000, tzinfo=<rethinkdb.ast.RqlTzinfo object at 0x7f072c5d6250>)
I'm trying to stringify them into a certain format:
dt.strftime("%d-%m-%Y %H:%M:%S (%Z)")
and it leads to
*** TypeError: tzinfo.tzname() must return None or a string, not 'unicode'
How can I overcome this?