🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #262840

Re: [dialog] Set the header date to a different TIMEZONE than the machine time zone?

#262840
From: R Radev
Date: Sun, 02 Sep 2018 10:00
46 lines
3534 bytes
Bernd Rose <b.rose.tmpbox@arcor.de> - 2018/09/02 


> So, of course, you'd have to adjust the /whole/ date entry,

Thanks for confirming I'd have to change the whole date header line.

I want to repeat that I have no intention to set the *entire* date line.
It's just crazy to do that.

The ONLY thing I want to change is the Time Zone. 
I don't want to mess with the date line at all.

Just the time zone.

It seems we both agree that it's crazy to adjust the whole date entry.
It's just too dangerous in terms of potential screwups.

I have no intention to mess with the entire date line.
I just want to change the time zone.

That means the only viable option to change JUST the time zone is to figure
out how Dialog can call a script to set the timezone before the timezone is
sent to Dialog.

I noted you said that this timezone (and date) is provided to
OnBeforeSendingMessage so it might be too late to run the tzutil command in
OnBeforeSendingMessage.

I guess I could set a custom script in Dialog to simply call tzutil.exe.
Do you know, offhand, the syntax to call a Windows command from a script?

I'm looking for any example in
http://dialog.datalist.org/scripts/script_library.html
that runs a Windows command from inside of Dialog.

This seems to run a Windows command:
http://dialog.datalist.org/scripts/ScriptSoundOnEmail.html

I'll try to modify that script to run this command to set the time zone:
  'c:\windows\system32\tzutil /s "Iran Standard Time"'

Simply setting the Windows system time zone is the SAFEST way.
I repeat: I don't want to touch the rest of the DATE header!

All I want is to run "tzutil" from inside of Dialog to set the Time Zone.
Technical Details
Message-ID: <pmgccg$97d$1@neodome.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
References: <pmfd3c$uop$1@neodome.net> <176wbldbyre5s.dlg@b.rose.tmpbox.news.arcor.de> <000wbldbyre5s.dlg@b.rose.tmpbox.news.arcor.de> <1w4ob1zdtdl03$.dlg@b.rose.tmpbox.news.arcor.de>

Show Full Headers
Complete Article Headers
Message-ID: <pmgccg$97d$1@neodome.net>
Subject: Re: [dialog] Set the header date to a different TIMEZONE than the machine time zone?
Date: Sun, 02 Sep 2018 10:00:49 +0000
From: R Radev <rradev098765@blizoo.bg>
References: <pmfd3c$uop$1@neodome.net> <176wbldbyre5s.dlg@b.rose.tmpbox.news.arcor.de> <000wbldbyre5s.dlg@b.rose.tmpbox.news.arcor.de> <1w4ob1zdtdl03$.dlg@b.rose.tmpbox.news.arcor.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Organization: Neodome
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 2 Sep 2018 10:00:49 +0000 (UTC)
Injection-Info: neodome.net;
 posting-account="uoCY+ASeq3fVFPdZO5HaSAr/fl4I/bf0MSE87IKFM9qfBgqjo8C7FtTZMT
 EHyidCuIJwRdFk7JLZ1QisJyCBZ0NkNhUc4y/6ndSYcRa1HEdIx7g1Ct54E0ae4T6l5q1TVpgx0
 LuvFxAvwI02C7/cNUf269qDYJMkx+adNcoKsdSw3HEpTBFGgnOf/N+tKxjADXYvGEp0D6CKJBsG
 Tnqr0lgq1JBV8RjnuloCR/opi/Qeo1UqqIzO7AlAPDeh+gm8dV81FWq84R49sTxasCKYXyJM3OG
 /LtdZTf1MNi8HXUAK6FQqLkrRfZ5V6kYdbP2hvtPfcJYsUlhY32xDFyxgIQ==";
 posting-host="aJSFSix/qoFtqxFOFNF62e9ILxlJc6Y5oMemqac2VsrU5CzX6JqMZxDgZjrrq
 YriBrF0fOhdXUpazblUp7AFYnNcgsx7w5WlZ96qG8PiHLZqubOQqJa+iaxUFjp7n1CppftOZRji
 9TFj4nJ34CnZs34GHBcO2vt7no1FO80gJ/SkALSBhxrB7MxH8mPPPuPwmT7U5cIh1Ou+PQE++yL
 qtSct+XGUNt45yxLFfheqnLrXPFqFjd3QRlCu8LaBNtzQ05Oh8WHdzk3QrqCQuC6Sf+gar2HrIl
 +6/G7DVLBKTVy6GXseN+8igAzQlrOAVxDjuCRShd6XoZnSNI3zB+kcpg==";
 logging-data="9453";
 mail-complaints-to="abuse@neodome.net"
User-Agent: 40tude_Dialog/2.0.15.41 (1731940b.222.399)
X-Received-Bytes: 3467
X-Received-Body-CRC: 542313380