Skip to content

Commit

Permalink
Use UTC times, not Berlin times
Browse files Browse the repository at this point in the history
  • Loading branch information
gerritholl committed Nov 22, 2024
1 parent 22c5c55 commit b8f9b2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ repos:
- types-setuptools
- types-PyYAML
- types-requests
- types-pytz
args: ["--python-version", "3.10", "--ignore-missing-imports"]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
Expand Down
5 changes: 2 additions & 3 deletions satpy/tests/behave/features/steps/image_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import cv2
import dask
import numpy as np
import pytz
from behave import given, then, when

from satpy import Scene
Expand All @@ -33,8 +32,8 @@

def before_all(context):
"""Define a before_all hook to create the timestamp and test results directory."""
berlin_time = datetime.now(pytz.timezone("Europe/Berlin"))
context.timestamp = berlin_time.strftime("%Y-%m-%d-%H-%M-%S")
tm = datetime.now()
context.timestamp = tm.strftime("%Y-%m-%d-%H-%M-%S")
context.test_results_dir = f"{ext_data_path}/test_results/image_comparison/{context.timestamp}"
os.makedirs(os.path.join(context.test_results_dir, "generated"), exist_ok=True)
os.makedirs(os.path.join(context.test_results_dir, "difference"), exist_ok=True)
Expand Down

0 comments on commit b8f9b2e

Please sign in to comment.