Browse Source

ntp: always use abs(offset), minus is used for positive values

mcspr-patch-1
Maxim Prokhorov 4 years ago
parent
commit
aebefdf941
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/ntp.cpp

+ 1
- 1
code/espurna/ntp.cpp View File

@ -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");


Loading…
Cancel
Save