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 Mar 29, 2023
1 parent 400ff37 commit 7ae9d5a
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 7ae9d5a

Please sign in to comment.