mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-23 08:37:08 +01:00
ntp: always use abs(offset), minus is used for positive values
This commit is contained in:
@@ -379,7 +379,7 @@ void _ntpConvertLegacyOffsets() {
|
||||
if (offset > 0) {
|
||||
custom += '-';
|
||||
}
|
||||
custom += offset / 60;
|
||||
custom += abs(offset) / 60;
|
||||
|
||||
if (dst) {
|
||||
custom += europe ? F("CEST") : F("EDT");
|
||||
|
||||
Reference in New Issue
Block a user