This website works better with JavaScript.
Home
Explore
Help
Sign In
mh
/
mhsw-espurna
Watch
1
Star
0
Fork
0
Code
Releases
0
Activity
Browse Source
ntp: always use abs(offset), minus is used for positive values
mcspr-patch-1
Maxim Prokhorov
4 years ago
parent
57e059a684
commit
aebefdf941
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
"
)
;
Write
Preview
Loading…
Cancel
Save