Return the offset for fixed offset timezones, or the name of timezone if not set.
(timezone)
| 72 | |
| 73 | |
| 74 | def _get_timezone_name(timezone): |
| 75 | """ |
| 76 | Return the offset for fixed offset timezones, or the name of timezone if |
| 77 | not set. |
| 78 | """ |
| 79 | return timezone.tzname(None) or str(timezone) |
| 80 | |
| 81 | |
| 82 | # Timezone selection functions. |
no outgoing calls
no test coverage detected