Skip to content

Commit 5947b75

Browse files
committed
Use correct method to format datetime
1 parent 9f1a640 commit 5947b75

File tree

1 file changed

+1
-1
lines changed
  • repo2docker/buildpacks

1 file changed

+1
-1
lines changed

repo2docker/buildpacks/r.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def get_build_scripts(self):
270270
"""
271271
if self.checkpoint_date < RSPM_CUTOFF_DATE:
272272
raise RuntimeError(
273-
f'Microsoft killed MRAN, the source of R package snapshots before {RSPM_CUTOFF_DATE.strptime("%Y-%m-%d")}. '\
273+
f'Microsoft killed MRAN, the source of R package snapshots before {RSPM_CUTOFF_DATE.strftime("%Y-%m-%d")}. '\
274274
f'This repo has a snapshot date of {self.checkpoint_date.strftime("%Y-%m-%d")} specified in runtime.txt. '\
275275
'Please use a newer snapshot date'
276276
)

0 commit comments

Comments
 (0)