HF RL Explorer

dateformat.y() doesn't support years < 1000. Description

dateformat.y() doesn't support years < 1000. Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). When using the the dateformat of django with a date before 999 (or 99 and 9 for similar matters) and the format character "y" no leading zero will be printed. This is not consistent…

The task

When using the the dateformat of django with a date before 999 (or 99 and 9 for similar matters) and the format character "y" no leading zero will be printed. This is not consistent with the way the python datetime module and PHP handle that character "y" in format strings: django (version 3.1): >>> import datetime…

Part of Lego-X/Lego-RL-SWE-Bench-Verified.