mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-06-12 06:48:46 +00:00
Merge pull request #89 from euquiq/fixed-datetime-bug
Fixed bug in datetime
This commit is contained in:
commit
863bb04091
@ -171,7 +171,7 @@ std::string to_string_datetime(const rtc::RTC& value, const TimeFormat format) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
string += to_string_dec_uint(value.hour(), 2, '0') + ":" +
|
string += to_string_dec_uint(value.hour(), 2, '0') + ":" +
|
||||||
string += to_string_dec_uint(value.minute(), 2, '0');
|
to_string_dec_uint(value.minute(), 2, '0');
|
||||||
|
|
||||||
if ((format == YMDHMS) || (format == HMS))
|
if ((format == YMDHMS) || (format == HMS))
|
||||||
string += ":" + to_string_dec_uint(value.second(), 2, '0');
|
string += ":" + to_string_dec_uint(value.second(), 2, '0');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user