Correct the timezone information on the given datetime
(self, dt, is_dst=False)
| 427 | return dt.replace(tzinfo=self) |
| 428 | |
| 429 | def normalize(self, dt, is_dst=False): |
| 430 | '''Correct the timezone information on the given datetime''' |
| 431 | if dt.tzinfo is self: |
| 432 | return dt |
| 433 | if dt.tzinfo is None: |
| 434 | raise ValueError('Naive time - no tzinfo set') |
| 435 | return dt.astimezone(self) |
| 436 | |
| 437 | |
| 438 | def FixedOffset(offset, _tzinfos={}): |
nothing calls this directly
no outgoing calls
no test coverage detected