☆
6
test with datetime.now fails in CI but passes locally
pytest 8.1.1, Python 3.12. CI on GitHub Actions is UTC, my machine is CET. A test does assert datetime.now().strftime('%Y-%m-%d') == '2024-03-10', passes here, fails in CI after 23:00 my time. Is this a timezone thing or something else? I set TZ=Europe/Berlin in the workflow env but it didn't seem to help.
1 replies