mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-09 05:49:09 -07:00
DateTime lib refactor fixes
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user