core/time: more flexible support for resolving TZ abbreviation -> TZ ambiguities

addresses https://github.com/karlicoss/HPI/issues/103

for now via experimental time.tz.force_abbreviations config variable
not sure if this whole things is doomed to be resolved properly
This commit is contained in:
Dima Gerasimov 2021-03-07 21:50:39 +00:00 committed by karlicoss
parent 5ef638694e
commit 1fd2a9f643
3 changed files with 54 additions and 12 deletions

View file

@ -3,7 +3,7 @@ from datetime import datetime
from itertools import islice
import pytz
import my.location.takeout as LT
import my.location.google as LT
from my.google.takeout.html import read_html
from my.google.takeout.paths import get_last_takeout
@ -69,3 +69,5 @@ def parse_takeout_xmllint(data: str):
out = res.stdout.decode('utf8')
# out = data
return out.split('<div class="content-cell')
from my.google.takeout.html import test_parse_dt