With clrghouz, the packet date, is the date of youngest (most recent) message in the packet, in UTC.
With clrghouz, the packet date, is the date of youngest (most recent) message in the packet, in UTC.
Do you support (generate or parse) type 2.2 packets? I ask because type 2.2 packet headers don't include a date.
FTSC_DATE: 23 Dec 24 23:59:18 :: TZOFFSET: 1200
BBS Log:
[2024-12-23 06:04:11.85648] [13813] [error] Parsed date time: 2024-12-23T11:59:18 is after current UTC date: 2024-12-23T11:04:11 even after TZ correction 1200 :: Using current UTC date for value.
I think coming from hub 1, the TZUTC offset should be 1300 now instead of 1200 for daylight savings, right? If I corrected for 1300, the time would have been valid and just 5 min before the current UTC time when I processed the packet.
I'll also take a look at using the packet date as you mentioned in
a previous message. Maybe that would be a better choice than what I'm doing.. but again, I think I might just be over thinking this. :)
One of the things I can do - which I've toyed with in the past, is to
give packets (and possibly messages headers) in your local time. IE:
When we connect, and I get a NUL Date message, with timezone
information, by definition I know what timezone you are in and as I generate packets I can use that timezone for the packet header and
message headers.
I think coming from hub 1, the TZUTC offset should be 1300 now instead
of 1200 for daylight savings, right? If I corrected for 1300, the time would have been valid and just 5 min before the current UTC time when I processed the packet.
Yes, you are correct. I just looked at the packet I received from Hub 1,and it does have TZUTC 1200. It should be TZUTC 1300 to be correct,
but since its generated from a script Paul might have 1200 hard coded.
My bad this is exactly what is happening... Humm... how to best fix? I
can manually edit this to fix for now... but it's a pain to have to
Yes, you are correct. I just looked at the packet I received from Hub 1,and it does have TZUTC 1200. It should be TZUTC 1300 to be correct, but since its generated from a script Paul might have 1200 hard coded.
My bad this is exactly what is happening... Humm... how to best fix? I can
"date +%z" should fix it for you. :)
And in case you need it (cant remem
ber if the + is allowed in the TZUT
C kludge), "date +%z:cut -c2-" (whe
re : is a pipe symbol).
Sysop: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 25 |
Nodes: | 8 (0 / 8) |
Uptime: | 149:36:22 |
Calls: | 1,906 |
Calls today: | 2 |
Files: | 11,079 |
Messages: | 935,215 |