I added the WhenWritten field, haven't added when exported or when
imported yet because it occured to me that they might be different to the when written timezone.
Anyway, I'm hoping this message displays the correct TZ for synchronet sysops being subjected to my messages :)
Not yet:
when_written 619403F0 0000 Tue Nov 16 11:18:08 2021 UTC
Not yet:
when_written 619403F0 0000 Tue Nov 16 11:18:08 2021 UTC
Ok, I'm at a bit of a loss here.
WhenWritten: 20211116124208+1000
Is from a headers.dat i just posted and intercepted..
Do I need a trailing space?
I'm probably totally wrong with the following, and it's probably
something simple i've missed on my side but...
Looking at the synchronet side, here:
https://ftp.synchro.net/main/sbbs/-/blob/master/src/sbbs3/qwktomsg.cpp
I notice it sets the timezone from the ISO date/time str, then checks for the location hex string with sscanf
I'm not an expert on sscanf (I've hardly ever used the scanf functions)
but I think:
sscanf(p,"%*s %s",zone);
would ignore the first string (the iso date/time) look for a space, then import a string which I guess would be null as it doesn't exist.
So, if it doesn't have the space, would zone remain uninitialized? And possibly have junk in it that doesn't parse with strtoul? and lead to a timezone of 00:00
Like I said I'm probably wrong.
No, I think you're right (zone is uninitialized and will remain so).
Of course, it's too late for all the builds of sbbs that are already
out in the wild, but I will still fix this. So it's probably best if
you just include the UTC offset in 16-bit hexadecimal too then, just
be the most compatible.
Ok, Hopefully this message should have it... I'm not counting on it
being
correct, but hopeful :)
Ok, Hopefully this message should have it... I'm not counting on it
being
correct, but hopeful :)
Might help if i do it in hexidecimal.
This one looks good:
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 577 |
Nodes: | 8 (0 / 8) |
Uptime: | 60:46:36 |
Calls: | 10,734 |
Calls today: | 1 |
Files: | 5 |
Messages: | 442,618 |