1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-05-02 22:24:22 +00:00

SCP: Updated to current.

This commit is contained in:
Richard Cornwell
2020-10-29 22:58:44 -04:00
parent dd35b8d972
commit 79c1117f97
4 changed files with 17 additions and 5 deletions

View File

@@ -2315,7 +2315,7 @@ if (sim_deb_switches & SWMASK ('R')) {
struct tm loc_tm, gmt_tm;
time_t time_t_now;
clock_gettime(CLOCK_REALTIME, &sim_deb_basetime);
sim_rtcn_get_time(&sim_deb_basetime, 0);
time_t_now = (time_t)sim_deb_basetime.tv_sec;
/* Adjust the relative timebase to reflect the localtime GMT offset */
loc_tm = *localtime (&time_t_now);