Skip to content

Commit 9e14a45

Browse files
wyardleytseaver
authored andcommitted
Fix 'datetime' usage in Spanner docs example (#5707)
1 parent f1f0767 commit 9e14a45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/spanner/snapshot-usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ reads as of a given timestamp:
2424
2525
import datetime
2626
from pytz import UTC
27-
TIMESTAMP = datetime.utcnow().replace(tzinfo=UTC)
27+
TIMESTAMP = datetime.datetime.utcnow().replace(tzinfo=UTC)
2828
snapshot = database.snapshot(read_timestamp=TIMESTAMP)
2929
3030
or as of a given duration in the past:

0 commit comments

Comments
 (0)