Skip to content

Commit 007d4c4

Browse files
committed
Update datetime usage
1 parent 9cc6c9d commit 007d4c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/osf_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ def create_preprint(
643643
# then the Edit Preprint page thinks that the preprint has unsaved changes even if
644644
# you have made no changes on the form page. There is a ticket for this issue:
645645
# ENG-3782.
646-
current_year = datetime.datetime.now().year
646+
current_year = datetime.now().year
647647
# Get subject id for the subject_name parameter. NOTE: Currently we are creating
648648
# the preprint with only a single subject, which is the minimum required to publish.
649649
subject_id = get_subject_id_for_provider(

0 commit comments

Comments
 (0)