RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot-Wikidata, Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): ts1 = pywikibot.Timestamp( year=2022, month=12, day=21, hour=13, tzinfo=datetime.timezone(datetime.timedelta(hours=-5))) ts2 = pywikibot.Timestamp( year=2022, month=12, day=21, hour=17, tzinfo=datetime.timezone.utc) ts1.timestamp() > ts2.timestamp() # True t1 = pywikibot.WbTime.fromTimestamp(ts1, timezone=-300) t2 = pywikibot.WbTime.fromTimestamp(ts2, timezone=0) t1 > t2 # False? **What happens?**: Timestamps that should be greater than are not. **What should have happened instead?**: They should be greater than. **Software version** (skip for WMF-hosted wikis like Wikipedia): **Other information** (browser name/version, screenshots, etc.): When I made the comparison operators, I accidentally applied the timezone shift backwards. TASK DETAIL https://phabricator.wikimedia.org/T325866 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org