Skip to content

Commit

Permalink
Follow date format convention
Browse files Browse the repository at this point in the history
Thanks Leptopt1los!
  • Loading branch information
Willy-JL committed Mar 31, 2024
1 parent 5a471e0 commit 2f064a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion applications/main/nfc/plugins/supported_cards/charliecard.c
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,9 @@ void locale_format_dt_cat(FuriString* out, const DateTime* dt) {
// helper to print datetimes
FuriString* s = furi_string_alloc();

locale_format_date(s, dt, locale_get_date_format(), "-");
LocaleDateFormat date_format = locale_get_date_format();
const char* separator = (date_format == LocaleDateFormatDMY) ? "." : "/";
locale_format_date(s, dt, date_format, separator);
furi_string_cat(out, s);
locale_format_time(s, dt, locale_get_time_format(), false);
furi_string_cat_printf(out, " ");
Expand Down

0 comments on commit 2f064a0

Please sign in to comment.