From 5947b756bab340d2b226df0a0ceed382358f24f1 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Sun, 11 Jun 2023 13:09:48 +0530 Subject: [PATCH] Use correct method to format datetime --- repo2docker/buildpacks/r.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo2docker/buildpacks/r.py b/repo2docker/buildpacks/r.py index ff033691..8f92e0f0 100644 --- a/repo2docker/buildpacks/r.py +++ b/repo2docker/buildpacks/r.py @@ -270,7 +270,7 @@ class RBuildPack(PythonBuildPack): """ if self.checkpoint_date < RSPM_CUTOFF_DATE: raise RuntimeError( - f'Microsoft killed MRAN, the source of R package snapshots before {RSPM_CUTOFF_DATE.strptime("%Y-%m-%d")}. '\ + f'Microsoft killed MRAN, the source of R package snapshots before {RSPM_CUTOFF_DATE.strftime("%Y-%m-%d")}. '\ f'This repo has a snapshot date of {self.checkpoint_date.strftime("%Y-%m-%d")} specified in runtime.txt. '\ 'Please use a newer snapshot date' )