-
Notifications
You must be signed in to change notification settings - Fork 163
log timestamping - inconsistent timezones #498
Comments
This is incorrect. The Kiwi code does not change the Linux/Debian timezone. It should always be UTC. As the Beagle does not have an RTC (real-time clock) driver currently I don't know what set-local-rtc does. The Kiwi code does attempt to determine the timezone so it can show local time in the user interface in addition to UTC. It can only do this if it can determine the lat/lon. There are three ways of doing that: via GPS if it has a signal, from public ip address geo-location or, as a last resort, if the admin has entered a lat/lon on the admin page. |
okay, then. but i did describe the issue with the timestamps in the Log
tab of the Admin interface. having made the change specified, the log
entry timestamps do not slew 4 hours ahead after the GPS is reacquired. i
made no change to the timezone of any account. only set a flag to notify
how to interpret output from hwclock.
…On Tue, Mar 23, 2021 at 2:30 PM John Seamons ***@***.***> wrote:
This is incorrect. The Kiwi code does *not* change the Linux/Debian
timezone. It should always be UTC. As the Beagle does not have an RTC
(real-time clock) driver currently I don't know what set-local-rtc does.
The Kiwi code does attempt to determine the timezone so it can show local
time in the user interface in addition to UTC. It can only do this if it
can determine the lat/lon. There are three ways of doing that: via GPS if
it has a signal, from public ip address geo-location or, as a last resort,
if the admin has entered a lat/lon on the admin page.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#498 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRUYNKB7P66VPPJT7XC3XTTFDM5HANCNFSM4ZVOB7CA>
.
|
timezone for UI is still:
TIMEZONE: "EDT", "America\/New_York"
On Tue, Mar 23, 2021 at 7:29 PM Christopher Sylvain ***@***.***>
wrote:
… okay, then. but i did describe the issue with the timestamps in the Log
tab of the Admin interface. having made the change specified, the log
entry timestamps do not slew 4 hours ahead after the GPS is reacquired. i
made no change to the timezone of any account. only set a flag to notify
how to interpret output from hwclock.
On Tue, Mar 23, 2021 at 2:30 PM John Seamons ***@***.***>
wrote:
> This is incorrect. The Kiwi code does *not* change the Linux/Debian
> timezone. It should always be UTC. As the Beagle does not have an RTC
> (real-time clock) driver currently I don't know what set-local-rtc does.
>
> The Kiwi code does attempt to determine the timezone so it can show local
> time in the user interface in addition to UTC. It can only do this if it
> can determine the lat/lon. There are three ways of doing that: via GPS if
> it has a signal, from public ip address geo-location or, as a last resort,
> if the admin has entered a lat/lon on the admin page.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#498 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABRUYNKB7P66VPPJT7XC3XTTFDM5HANCNFSM4ZVOB7CA>
> .
>
|
here is another way to describe the issue:
the initial timestamps used in the log file are the local time and not UTC
when set-local-rtc is not set. the systemd is getting time from ntpdate?
and then setting the time in the kernel (which can be obtained via
/sbin/hwclock ) to the local time zone. in only minutes later, once time
is obtained from GPS, then the log timestamps are clearly getting slewed
forward as many hours as it takes to catch back up with UTC.
does this help?
On Tue, Mar 23, 2021 at 7:31 PM Christopher Sylvain ***@***.***>
wrote:
… timezone for UI is still:
>
> TIMEZONE: "EDT", "America\/New_York"
>
>
On Tue, Mar 23, 2021 at 7:29 PM Christopher Sylvain <
***@***.***> wrote:
> okay, then. but i did describe the issue with the timestamps in the Log
> tab of the Admin interface. having made the change specified, the log
> entry timestamps do not slew 4 hours ahead after the GPS is reacquired. i
> made no change to the timezone of any account. only set a flag to notify
> how to interpret output from hwclock.
>
>
>
> On Tue, Mar 23, 2021 at 2:30 PM John Seamons ***@***.***>
> wrote:
>
>> This is incorrect. The Kiwi code does *not* change the Linux/Debian
>> timezone. It should always be UTC. As the Beagle does not have an RTC
>> (real-time clock) driver currently I don't know what set-local-rtc does.
>>
>> The Kiwi code does attempt to determine the timezone so it can show
>> local time in the user interface in addition to UTC. It can only do this if
>> it can determine the lat/lon. There are three ways of doing that: via GPS
>> if it has a signal, from public ip address geo-location or, as a last
>> resort, if the admin has entered a lat/lon on the admin page.
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <#498 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/ABRUYNKB7P66VPPJT7XC3XTTFDM5HANCNFSM4ZVOB7CA>
>> .
>>
>
|
What are you talking about? Your log attachment does not show the UTC timestamps (first column) "slewing ahead" when the TZ is acquired. They are always in UTC. The Kiwi code never changes the Linux time or TZ when it acquires the TZ. It is only used for the display of local time in the Kiwi user interface. The only possible issue is if you deliberately set the Linux TZ instead of leaving it UTC as shipped in the image from the factory. People who mess with Linux in this way get what they deserve. |
the timestamps in the system log would start off in my local timezone (determined by lat:lon available to kiwisdr daemon?) and then slew to UTC after GPS acquisition on every reboot.
account 'root' and 'debian' on beagleboard report UTC timezone from command line.
during boot up, these lines appear in log:
i checked hwclock to verify RTC is set to UTC -- confirmed.
yet: the timedatectl configuration (systemd) reported RTC not set to local time (UTC in this case).
i have changed the following
now the entire system is in UTC and the RTC is configured for UTC local timezone.
upon reboot, the log now begins with a UTC timestamp (not my local time zone) and does no longer slew forward some many hours from my local time to UTC shortly after completing the system reboot and acquiring GPS.
The text was updated successfully, but these errors were encountered: