You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>>loop=asyncio.new_event_loop()
>>>c=loop.run_until_complete(asyncpg.connect(database='lol'))
>>>loop.run_until_complete(c.fetch("select now()::timestamptz"))
[<Recordnow=datetime.datetime(2023, 2, 19, 0, 54, 39, 597496, tzinfo=datetime.timezone.utc)>]
# ^ here, i'd expect it to be with tzinfo=datetime.timezone(datetime.timedelta(seconds=3600), 'CET')# because python does the same thing when having timezoned timestamps:>>>datetime.datetime.now().astimezone()
datetime.datetime(2023, 2, 19, 1, 57, 12, 260030, tzinfo=datetime.timezone(datetime.timedelta(seconds=3600), 'CET'))
Activity
adriangb commentedon Feb 19, 2023
Dupe of #481 ?
TheJJ commentedon Feb 22, 2023
I've submitted a fix at MagicStack/py-pgproto#21
TheJJ commentedon Apr 8, 2023
can this please be reviewed?