SI4735 icon indicating copy to clipboard operation
SI4735 copied to clipboard

Incorrect sign of time zone offset in getRdsTime()

Open Mek7 opened this issue 1 year ago • 0 comments

Describe the bug getRdsTime() returns a string such as 13:51 -02:00 but it should be 13:51 +02:00 My time zone is +02:00 and the FM station broadcasts correct time zone (verified using another radio)

To Reproduce Watch what getRdsTime() returns for your time zone

Expected behavior Returned time zone should be +02:00 instead of -02:00

Screenshots On another radio: image On pu2clr: image

Please, add the following information):

  • Arduino IDE version - none, just Microchip Studio
  • Arduino Board - none, just a bare atmega328 chip
  • Library version - latest

Additional context In getRedTime() method, fix this line: offset_sign = (dt.refined.offset_sense == 1) ? '+' : '-'; like this: offset_sign = (dt.refined.offset_sense == 1) ? '-' : '+';

Mek7 avatar Aug 15 '22 14:08 Mek7