diff --git a/data/en/isleapyear.json b/data/en/isleapyear.json index 144aa3378..589a87b54 100644 --- a/data/en/isleapyear.json +++ b/data/en/isleapyear.json @@ -22,7 +22,7 @@ { "title": "Is the current date in a leap year?", "description": "", - "code": "date = now();\nisLeapYear = isLeapYear(date);\nwriteOutput(isLeapYear);", + "code": "date = now();\nisLeapYear = isLeapYear(year(date));\nwriteOutput(isLeapYear);", "result": "", "runnable":true }