Skip to content

Commit cefc960

Browse files
committed
Use UTC time from GPS
1 parent c3f3914 commit cefc960

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

command_interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ void command_interface_process_byte(char incoming)
246246
}
247247
else if(strncmp(command_input_buffer, "version", 7) == 0)
248248
{
249-
sprintf((char *)command_response_buffer, "version,0.8.1,beta");
249+
sprintf((char *)command_response_buffer, "version,0.8.2,beta");
250250
m_ble_tx_logbuffer(command_response_buffer, strlen((const char *)command_response_buffer));
251251
}
252252
else if(strncmp(command_input_buffer, "getcfg", 6) == 0)

main.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,11 +1747,6 @@ static void logging_timer_handler(void *p_context) {
17471747
gpsTime.tm_sec = hgps.seconds;
17481748
// Give it to me in time_t
17491749
newTimeSeconds = mktime(&gpsTime);
1750-
// Add timezone offset
1751-
newTimeSeconds += gotchi_cfg_user.timezone_hour_offset * 60 * 60; // Add timezone hour offset in seconds
1752-
newTimeSeconds += gotchi_cfg_user.timezone_minute_offset * 60; // Add timezone minute offset in seconds
1753-
// Update tmTime with timezone adjustment
1754-
localtime_r(&newTimeSeconds, &gpsTime);
17551750

17561751
//strftime(datetimestring, 64, "%Y-%m-%dT%H:%M:%S", tmTime);
17571752
//NRF_LOG_INFO("Setting time from GPS; time now %s or %ld", datetimestring, newTimeSeconds);

0 commit comments

Comments
 (0)