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

This commit is contained in:
Maxim Prokhorov
2020-09-30 12:21:28 +03:00
parent 57e059a684
commit aebefdf941

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