We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a22dfd5 commit d1b01c3Copy full SHA for d1b01c3
pygmt/tests/test_clib_put_vector.py
@@ -1,8 +1,8 @@
1
"""
2
Test the functions that put vector data into GMT.
3
4
+import datetime
5
import itertools
-from datetime import datetime
6
7
import numpy as np
8
import numpy.testing as npt
@@ -122,7 +122,7 @@ def test_put_vector_string_dtype():
122
"2021-02-03T00:00:00",
123
"2021-02-03T04:00:00",
124
"2021-02-03T04:05:06",
125
- f"{datetime.utcnow().strftime('%Y-%m-%d')}T04:50:06",
+ f"{datetime.datetime.now(tz=datetime.UTC).strftime('%Y-%m-%d')}T04:50:06",
126
],
127
]
128
0 commit comments