()
| 278 | |
| 279 | |
| 280 | def get_tzinfo_options(): |
| 281 | # Due to dateutil/dateutil#197, Windows may fail to parse times in the past |
| 282 | # with the system clock. We can alternatively fallback to tzwininfo when |
| 283 | # this happens, which will get time info from the Windows registry. |
| 284 | if sys.platform == 'win32': |
| 285 | from dateutil.tz import tzwinlocal |
| 286 | |
| 287 | return (tzlocal, tzwinlocal) |
| 288 | else: |
| 289 | return (tzlocal,) |
| 290 | |
| 291 | |
| 292 | ######################################################## |
no outgoing calls