Article View: news.software.readers
Article #262837Re: [dialog] Set the header date to a different TIMEZONE than the machine time zone?
From: R Radev
Date: Sun, 02 Sep 2018 09:02
Date: Sun, 02 Sep 2018 09:02
31 lines
3148 bytes
3148 bytes
R Radev <rradev098765@blizoo.bg> - 2018/09/02 > I just got an idea though. Maybe I can get OnBeforeSendingMessage to run > that batch script to set the system timezone (tzset_tehran.bat) and then, > after the message is sent, then Dialog could reset the system timezone back > to the original (tzset_london.bat)? Note: I deleted the date header, so this example should show TZ +0000. For example: Sun, 2 Sep 2018 09:03:14 +0000 (UTC) Hi Bernd, Thinking about your response, are you suggesting I have two options to set the TimeZone dynamically from within Dialog? (Assume I am in London but I want a message to have a Berlin TimeZone.) 1. Make Dialog set the system TZ to Berlin before sending the message? tzutil /s "W. Europe Standard Time" (then have Dialog reset the system TZ back to London after sending?) tzutil /s "GMT Standard Time" 2. Make Dialog get the date & time & timezone before sending the message date /T (this gets the current system date) time /T (this gets the current system time) tzutil /g (this gets the current system TZ) (then calculate the new date based on the new desired time zone?) NOTE that this second method sets a *static* Date header, which I was trying to avoid because any mistake will cause the nntp server to barf.
Technical Details
Message-ID:
<pmg8vj$88b$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-mailReferences:
<pmfd3c$uop$1@neodome.net> <176wbldbyre5s.dlg@b.rose.tmpbox.news.arcor.de> <000wbldbyre5s.dlg@b.rose.tmpbox.news.arcor.de>Show Full Headers
Complete Article Headers
Message-ID: <pmg8vj$88b$1@neodome.net> Subject: Re: [dialog] Set the header date to a different TIMEZONE than the machine time zone? Date: Sun, 02 Sep 2018 09:02:43 +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> 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 09:02:43 +0000 (UTC) Injection-Info: neodome.net; posting-account="E5kDyElzYAxPrym1zhboLlNm1Vj66R2XGtlIcYdL75iopGoiuyWl/83B2u gT8I7bg4AKVcHd+2DeQk/jhn3UzdSpzez6mAAD8a9rTaP37rWNs0oDCfSEFWpqnFeZMUHvyk9bB pUwl53ZNPFjcwKDmF86cVj1xocKda/vg2ktOw02Ul4nOc4ObfSUFOsDa2mE2SqyidRlYCmIVcWA 9/WXIw5S6ayMePK99hZm56YYVyvZafZ3aSWBj5ChxuWrcOlC+7jN7TeTuYgxUry/+N3AftwWq0Y MVrmOAmYSrMojHkncdIFj542l0Hl8KTWLokFtaAHvifNTuh+E2Mb+rS9Low=="; posting-host="AON0we3b+FC9FjYRVSR/i/BTuHsK7JNlEzSj63T6aE4lwjDaq5rCAyusaZy5w toPvW4EqVjdN1X9kaF3eypwmr1wn08zq3Qu0uQKoUZLRsojAPux4Qe7wtqhSRfu1yuHgk+VdvZ1 zwBJItDJYRx2YNYjB1ZSgrvjlGhyVOTY362QkD4kWR9KFeGcclq4OIih2cQCWwku7/hPm5Munj4 kLqKeVEyaW8gpGuhO6jGF+nLLd/Sa/hI4JgpV9b/8s9W6vcpKkfATxAXGPI6bN9D/nrW/11mS7K P2cEXxbUp65EgKeNbWf0QA9gYziMVnz6DYocf7Y0Vlch1Yn2ssbntpAQ=="; logging-data="8459"; mail-complaints-to="abuse@neodome.net" User-Agent: 40tude_Dialog/2.0.15.41 (1731940b.222.399) X-Header: The above date header is set by the nntp server X-Received-Bytes: 3099 X-Received-Body-CRC: 3938476110