Skip to content

Commit 38b6552

Browse files
committed
GH refs
1 parent c13a567 commit 38b6552

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

doc/source/whatsnew/v1.4.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Other API changes
9797
Deprecations
9898
~~~~~~~~~~~~
9999
- Deprecated :meth:`Index.is_type_compatible` (:issue:`42113`)
100-
- Deprecated treating ``numpy.datetime64`` objects as UTC times when passed to the :class:`Timestamp` constructor along with a timezone. In a future version, these will be treated as wall-times. To retain the old behavior, use ``Timestamp(dt64).tz_localize("UTC").tz_convert(tz)`` (:issue:`??`)
100+
- Deprecated treating ``numpy.datetime64`` objects as UTC times when passed to the :class:`Timestamp` constructor along with a timezone. In a future version, these will be treated as wall-times. To retain the old behavior, use ``Timestamp(dt64).tz_localize("UTC").tz_convert(tz)`` (:issue:`42288`)
101101
-
102102

103103
.. ---------------------------------------------------------------------------

pandas/_libs/tslibs/timestamps.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ class Timestamp(_Timestamp):
13301330

13311331
tzobj = maybe_get_tz(tz)
13321332
if tzobj is not None and is_datetime64_object(ts_input):
1333-
# In the future we will treat datetime64 as wall-time
1333+
# GH#42288 In the future we will treat datetime64 as wall-time
13341334
# (consistent with DatetimeIndex)
13351335
warnings.warn(
13361336
"In a future version, when passing a np.datetime64 object and "

pandas/tests/scalar/timestamp/test_constructors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
class TestTimestampConstructors:
2828
def test_constructor_datetime64_with_tz(self):
29+
# GH#42288
2930
dt = np.datetime64("1970-01-01 05:00:00")
3031
tzstr = "UTC+05:00"
3132

0 commit comments

Comments
 (0)