Skip to content

Commit 05679a6

Browse files
committed
FIX: small fix to avoid native vs non-native datetime comparison
1 parent a6e1d2b commit 05679a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyart/io/grid_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def write_grid(
317317
if arm_time_variables:
318318
time = grid.time
319319
dt = netCDF4.num2date(time["data"][0], time["units"])
320-
td = dt - datetime.fromtimestamp(0, tz=datetime.timezone.utc).replace(
320+
td = dt - datetime.datetime.fromtimestamp(0, tz=datetime.timezone.utc).replace(
321321
tzinfo=None
322322
)
323323
td = td.seconds + td.days * 24 * 3600

0 commit comments

Comments
 (0)