Skip to content

Commit

Permalink
change error code
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoRSeifert committed Sep 2, 2024
1 parent 74968a7 commit dd47278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/mpFuncCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ MUP_NAMESPACE_START

struct tm date;
if (!strptime(date_time.c_str(), "%Y-%m-%d", &date)) {
raise_error(ecINVALID_DATE_FORMAT, 1, a_pArg);
raise_error(ecINVALID_DATETIME_FORMAT, 1, a_pArg);
}

int week_day = date.tm_wday;
Expand Down

0 comments on commit dd47278

Please sign in to comment.