Re: [WebDNA] mail header timezone problem
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 100545
interpreted = N
texte = what about something like[Sendmail to=talk@webdna.us&from=webdna@idfk.com.au&subject=Test To Force Time&Date=Fri, 15 Aug 2008 00:28:37 +1000]Email Body[/SendMail]Just after midnight here so I will leave it to you guys from here :)On 15/08/2008, at 12:25 AM, Psi Prime, Matthew A Perosi wrote:> That would be an interesting approach....>> But are you talking about creating a text file on your own and > writing it into the EmailFolder directory or adding an undocumented > string into the [sendmail] context.>> Even though I've done my share of hacking with the email system (see > the archives for some interesting things I've discovered and > documented) I also have had my share of disappointments when it > comes to changing the email headers.>> So let's see some specific (untested) code examples.>> Thanks!>> Matthew A Perosi |> Psi Prime, Inc. |> http://www.psiprime.com |> http://en.wikipedia.org/wiki/Psi_Prime%2C_Inc |> 323 Union Blvd. |> Totowa, NJ 07512 |> P: 973.413.8210 |> F: 973.413.8217 |>>>> Brian B. Burton wrote:>> As much as I don't like hacks, sometimes it's the fastest way to >> fix the problem.>>>> Why not do a little date/time math, store it in a text variable, >> and stuff that into the email headers, thus overriding the built in >> datetime stamp?>>>> You could even set your offset as a variable itself so you could >> adjust as needed for daylight savings without having to dig into >> the code.>>>> Just my 2 cents.>>>> BBB>>>>>>>>>> On Aug 14, 2008, at 8:52 AM, Marc Thompson wrote:>>>>> Stuart,>>> I have done that, but cannot find any solution? Here's the URL >>> from a 2003/05/07 post from Matthew A Perosi with subject "Strange >>> time in emails". I've had the same exact problem for years on >>> unix-Solaris Sparc. My original post was sent 2007/05/14 with the >>> same subject as this thread.>>> This problem has been discussed on the talk list for years, but I >>> cannot find any solution? See: http://dev.webdna.us/TalkListArchive/DetailResults.tpl?command=search&db=webdna-talk.db&eqIDdata=33698&max=1&words=email%20time>>>>>> Marc>>>>>> Stuart Tremain wrote:>>>> There was a fair bit of talk about that a few years ago - have a >>>> look at the archives :)>>>> Regards>>>> Stuart Tremain>>>>>>>>>>>>>> On 14/08/2008, at 3:46 AM, Marc Thompson wrote:>>>>> Same here, several years, all emails are 1 hour ahead of the >>>>> actual time.>>>>>>>>>> Marc>>>>>>>>>> Psi Prime, Matthew A Perosi wrote:>>>>>> I have been dealing with this for several years. Ever since >>>>>> upgrading to v6 WebDNA.>>>>>> During the summer months all my emails are 1 hour off. I too >>>>>> would like to find a solution to this.>>>>>> Matthew A Perosi |>>>>>> |>>>>>> Marc Thompson wrote:>>>>>>> We're running WebCatalog unix-Solaris Sparc Apache Module >>>>>>> version 6.0a and have our SMTP Mail Server set to our own smtp >>>>>>> mail server. Additionally, we're located in the Mountain Time >>>>>>> Zone (MDT). Problem we're seeing after sniffing network >>>>>>> traffic is that WebCatalog is sending the wrong offset in the >>>>>>> email headers?>>>>>>>>>>>>>> Here's an example:>>>>>>> SMTP: "Date: Sat, 12 May 2007 12:25:16 -0700\r\n">>>>>>>>>>>>>> Maybe it's mapping MDT to -0700 instead of -0600, treating it >>>>>>> like MST or like there's no such thing as daylight saving time?>>>>>>> Putting [date %Z] on a page does display the correct Timezone >>>>>>> (MDT), just not in the email header.>>>>>>>>>>>>>> The system appears to know the correct timezone:>>>>>>> v242:78> date>>>>>>> Sat May 12 11:55:04 MDT 2007>>>>>>> v242:79> perl -e '$a = localtime(); print "$a\n";'>>>>>>> Sat May 12 11:55:54 2007>>>>>>>>>>>>>> Anyone got any ideas or know how to tell WebCat to use correct >>>>>>> offset?>>>>>>>>>>>>>> Marc>>>>>>>>>>>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list
.>> To unsubscribe, E-mail to: >>>>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to:
Associated Messages, from the most recent to the oldest:
what about something like[Sendmail to=talk@webdna.us&from=webdna@idfk.com.au&subject=Test To Force Time&Date=Fri, 15 Aug 2008 00:28:37 +1000]Email Body[/SendMail]Just after midnight here so I will leave it to you guys from here :)On 15/08/2008, at 12:25 AM, Psi Prime, Matthew A Perosi wrote:> That would be an interesting approach....>> But are you talking about creating a text file on your own and > writing it into the EmailFolder directory or adding an undocumented > string into the [sendmail] context.>> Even though I've done my share of hacking with the email system (see > the archives for some interesting things I've discovered and > documented) I also have had my share of disappointments when it > comes to changing the email headers.>> So let's see some specific (untested) code examples.>> Thanks!>> Matthew A Perosi |> Psi Prime, Inc. |> http://www.psiprime.com |> http://en.wikipedia.org/wiki/Psi_Prime%2C_Inc |> 323 Union Blvd. |> Totowa, NJ 07512 |> P: 973.413.8210 |> F: 973.413.8217 |>>>> Brian B. Burton wrote:>> As much as I don't like hacks, sometimes it's the fastest way to >> fix the problem.>>>> Why not do a little date/time math, store it in a text variable, >> and stuff that into the email headers, thus overriding the built in >> datetime stamp?>>>> You could even set your offset as a variable itself so you could >> adjust as needed for daylight savings without having to dig into >> the code.>>>> Just my 2 cents.>>>> BBB>>>>>>>>>> On Aug 14, 2008, at 8:52 AM, Marc Thompson wrote:>>>>> Stuart,>>> I have done that, but cannot find any solution? Here's the URL >>> from a 2003/05/07 post from Matthew A Perosi with subject "Strange >>> time in emails". I've had the same exact problem for years on >>> unix-Solaris Sparc. My original post was sent 2007/05/14 with the >>> same subject as this thread.>>> This problem has been discussed on the Talk List for years, but I >>> cannot find any solution? See: http://dev.webdna.us/TalkListArchive/DetailResults.tpl?command=search&db=webdna-talk.db&eqIDdata=33698&max=1&words=email%20time>>>>>> Marc>>>>>> Stuart Tremain wrote:>>>> There was a fair bit of talk about that a few years ago - have a >>>> look at the archives :)>>>> Regards>>>> Stuart Tremain>>>>>>>>>>>>>> On 14/08/2008, at 3:46 AM, Marc Thompson wrote:>>>>> Same here, several years, all emails are 1 hour ahead of the >>>>> actual time.>>>>>>>>>> Marc>>>>>>>>>> Psi Prime, Matthew A Perosi wrote:>>>>>> I have been dealing with this for several years. Ever since >>>>>> upgrading to v6 WebDNA.>>>>>> During the summer months all my emails are 1 hour off. I too >>>>>> would like to find a solution to this.>>>>>> Matthew A Perosi |>>>>>> |>>>>>> Marc Thompson wrote:>>>>>>> We're running WebCatalog unix-Solaris Sparc Apache Module >>>>>>> version 6.0a and have our SMTP Mail Server set to our own smtp >>>>>>> mail server. Additionally, we're located in the Mountain Time >>>>>>> Zone (MDT). Problem we're seeing after sniffing network >>>>>>> traffic is that WebCatalog is sending the wrong offset in the >>>>>>> email headers?>>>>>>>>>>>>>> Here's an example:>>>>>>> SMTP: "Date: Sat, 12 May 2007 12:25:16 -0700\r\n">>>>>>>>>>>>>> Maybe it's mapping MDT to -0700 instead of -0600, treating it >>>>>>> like MST or like there's no such thing as daylight saving time?>>>>>>> Putting [date %Z] on a page does display the correct Timezone >>>>>>> (MDT), just not in the email header.>>>>>>>>>>>>>> The system appears to know the correct timezone:>>>>>>> v242:78> date>>>>>>> Sat May 12 11:55:04 MDT 2007>>>>>>> v242:79> perl -e '$a = localtime(); print "$a\n";'>>>>>>> Sat May 12 11:55:54 2007>>>>>>>>>>>>>> Anyone got any ideas or know how to tell WebCat to use correct >>>>>>> offset?>>>>>>>>>>>>>> Marc>>>>>>>>>>>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >>>>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to:
Stuart Tremain
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Problem 2: Prefs file... (1997)
emailer settings and control questions (1997)
[WebDNA] SOAP support (2014)
[ListFiles] from a remote host (2003)
database freeze (1997)
default value from Lookup (was Grant, please help me) (1997)
[Price] (1997)
Processing all html files through WebCat or Typhoon (1998)
Database changes (1998)
NT or Mac (1998)
(ot) sitemap generator (1998)
Database Posting (2000)
Mac Vs WindowsNT (1997)
[WebDNA] reply vs. new (2009)
Server slowing down. (1997)
unable to launch acgi in WebCat (1997)
[WebDNA] multi-language sites in current versions of webdna? (2010)
Reloading Shopping Carts (1998)
UPDATE PROBLEM (1997)
Use of Back and Reload Buttons on ShoppingCart page? (1997)