Skip to content

Commit d2ca621

Browse files
examples: fix warning
1 parent 857babf commit d2ca621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/tutorial/employee/employee.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def update_age(self, change):
4848
4949
"""
5050
# grab the current date time
51-
now = datetime.datetime.utcnow()
51+
now = datetime.datetime.now(datetime.UTC)
5252
# estimate the person's age within one year accuracy
5353
age = now.year - self.dob.year
5454
# check to see if the current date is before their birthday and

0 commit comments

Comments
 (0)