MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / fromutc

Method fromutc

web/pgadmin/misc/bgprocess/process_executor.py:103–106  ·  view source on GitHub ↗
(self, dt)

Source from the content-addressed store, hash-verified

101 _tzname = zone
102
103 def fromutc(self, dt):
104 if dt.tzinfo is None:
105 return self.localize(dt)
106 return super(UTC.__class__, self).fromutc(dt)
107
108 def utcoffset(self, dt):
109 return _ZERO

Callers

nothing calls this directly

Calls 1

localizeMethod · 0.95

Tested by

no test coverage detected