Skip to content

Commit b4ba548

Browse files
committed
Merge branch 'dev' of https://github.com/MeteoSwiss/pyart into dev
2 parents 8290b5f + b27e31a commit b4ba548

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pyart/io/mdv_grid.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ def write_grid_mdv(filename, grid, mdv_field_names=None, field_write_order=None)
118118
d["max_nx"] = nx
119119
d["max_ny"] = ny
120120
d["max_nz"] = nz
121-
td = datetime.datetime.utcnow() - datetime.datetime(1970, 1, 1, 0, 0)
121+
td = datetime.datetime.now(datetime.timezone.utc) - datetime.datetime(
122+
1970, 1, 1, 0, 0
123+
)
122124
d["time_written"] = int(
123125
round(td.microseconds + (td.seconds + td.days * 24 * 3600) * 10**6) / 10**6
124126
)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
PLATFORMS = ["Linux", "Mac OS-X", "Unix"]
7575
MAJOR = 2
7676
MINOR = 0
77-
MICRO = 4
77+
MICRO = 5
7878
ISRELEASED = False
7979
VERSION = f"{int(MAJOR)}.{int(MINOR)}.{int(MICRO)}"
8080
SCRIPTS = glob.glob("scripts/*")

0 commit comments

Comments
 (0)