Skip to content

Commit

Permalink
Allow #, E and O modifiers for date format
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk committed Apr 1, 2023
1 parent d8df072 commit f4df65e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/std/date.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ static value date_format( value o, value fmt ) {
continue;
}
i++;
if (str[i] == '#') {
i++;
}
if (str[i] == 'E' || str[i] == 'O') {
i++;
}
bool is_valid = false;
const char* format_code = VALID_FORMAT_CODES;
while (*format_code) {
Expand Down

0 comments on commit f4df65e

Please sign in to comment.