I'm posting some messages with txt2pkt - but the messages are missing
the TZUTC kludge. Setting the var TZUTC didnt do anything.
Is there a variable to tell txt2pkt the current timezone, so that
messages posted have the right timestamp?
AFAIK no.
Re: TZUTC
By: Michael Dukelsky to Deon George on Wed May 20 2020 05:16 pm
AFAIK no.
:(
I did work out, if I set TZ=0000 before calling txt2pkt, the packet
was atleast rendered with UTC time - and thus was the correct time (although being in UTC)...
It would be great if it could detect and use /etc/timezone or /etc/localtime and set the TZ kludge appropriately...
You can put any kludges into the text file to be posted.
It would be great if it could detect and use /etc/timezone or /etc/localtime and set the TZ kludge appropriately...
=== Cut ===
echo %@char[1]CHRS: CP437 2 >tmpfile
echo %@char[1]X-OOPS: :-D >>tmpfile
echo %@char[1]TZUTC: 0300 >>tmpfile
Now, it would be great if "hpt" and "htick" recognised or added a
TZUTC to messages. eg: If I do "hpt afix <node> %LIST" the resulting netmail sent to <node> has the wrong time...
Re: TZUTC
By: Tommi Koivula to Deon George on Thu May 21 2020 08:24:22
=== Cut ===4DOS/4OS2 is really nice, isn't it ;)
echo %@char[1]CHRS: CP437 2 >tmpfile
echo %@char[1]X-OOPS: :-D >>tmpfile
echo %@char[1]TZUTC: 0300 >>tmpfile
)\/(ark
please define "wrong time"... if you run the command at noon your local time, what time stamp is in the message generated? what is your offset from UTC? what time stamp do you expect to see?
please define "wrong time"... if you run the command at noon your
local time, what time stamp is in the message generated? what is
your offset from UTC? what time stamp do you expect to see?
The packet gets created with the "current time" without any TZUTC -
so when it gets imported into Synchronet, its recorded as "the time"
"UTC" - which for me is 10 hrs into the future.
Re: TZUTCanother
By: Deon George to Tommi Koivula on Thu May 21 2020 04:00 pm
So this worked a treat, thank you.
It gave me an idea, since I was piping from stdin to txt2pkt, I created
script with just:
(echo -e \\x01CHRS: CP437 2 && echo -e \\x01TZUTC: 1000 && cat)
That worked just as well.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 370 |
Nodes: | 16 (2 / 14) |
Uptime: | 126:16:58 |
Calls: | 7,905 |
Calls today: | 1 |
Files: | 12,972 |
Messages: | 5,792,847 |