Use correct method to format datetime

pull/1285/head
YuviPanda 2023-06-11 13:09:48 +05:30
rodzic 9f1a6406b6
commit 5947b756ba
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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'
)