DateTime lib refactor fixes

This commit is contained in:
Willy-JL
2024-02-15 23:08:16 +00:00
parent 2b8db657e4
commit 9656fa319e
10 changed files with 11 additions and 22 deletions

View File

@@ -69,7 +69,7 @@ void desktop_view_locked_draw_lockscreen(Canvas* canvas, void* m) {
char second_str[5];
char date_str[14];
char meridian_str[3];
FuriHalRtcDateTime datetime;
DateTime datetime;
furi_hal_rtc_get_datetime(&datetime);
LocaleTimeFormat time_format = locale_get_time_format();
LocaleDateFormat date_format = locale_get_date_format();

View File

@@ -73,9 +73,7 @@ bool dolphin_state_load(DolphinState* dolphin_state) {
}
uint64_t dolphin_state_timestamp() {
DateTime datetime;
furi_hal_rtc_get_datetime(&datetime);
return datetime_datetime_to_timestamp(&datetime);
return furi_hal_rtc_get_timestamp();
}
bool dolphin_state_is_levelup(uint32_t icounter) {