mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-02-05 16:16:13 +00:00
Fixed timezone issue in DLMS timestamps
This commit is contained in:
@@ -24,7 +24,7 @@ time_t decodeCosemDateTime(CosemDateTime timestamp) {
|
||||
time_t time = makeTime(tm);
|
||||
int16_t deviation = ntohs(timestamp.deviation);
|
||||
if(deviation >= -720 && deviation <= 720) {
|
||||
time -= deviation * 60;
|
||||
time += deviation * 60;
|
||||
}
|
||||
return time;
|
||||
}
|
||||
Reference in New Issue
Block a user