Code Novice MAC here...CODE HELP NEEDED!
Recently I inherited a gps modem salvaged from a marine plotter, so decided to try and build a gps lcd clock using an UNO and a 16X2 LED display and TinyGPS library. The project idea code is from TinyGPS | Arduiniana
Everything went together fine with code converting the UTC time to Pacific Standard Time (PST), and Pacific Daylight Time (PDT), by subtracting 8 or 7 hours respectively from the UTC time. The LCD displayed both times correctly until UTC went between 1am to 6am where it displayed negative numbers. I tried adding 24 to the UTC which corrected the low numbers, but caused all others to be too large. It looks like I need some extra conversion help. See photos and sketch attached.
Does anyone have or know code which would solve my problem?
Thanks,
Mac
TinyGPS_CLOCK_TEST1.ino (3.32 KB)