Re: One Hour Email
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 43295
interpreted = N
texte = I have confirmed this to be a bug with the Windows builds of WebDNA. I amtesting the WebDNA 4.5 release build on a machine that is set to PST (PDT),and the DATE header generated by the sendmail thread is off by one hour asreported.It is true that the engine does not make the call to _tzset() before thecall to get the system time. However, the call to _tzset() will only havean effect if there is a TZ environment variable set on the system. If thereis a TZ environment variable set, then the _tzset() call will use the TZvalue to set other environment variables that store information related totime zone and 'daylight savings' state. If the TZ environment variable isnot set, then the next call to tzset(), ftime() or localtime() will populatethe other environment variables based upon the Control Panel's Date/Timeapplication settings. In my case, adding the _tzset() call did not fix theproblem.I looks like the fix involves simply checking the data structure returnedfrom localtime() and checking the state of the daylight-savings-time flag,and then making the necessary adjustments to the GMT offset. I am currentlytesting this fix. If all goes well, we will release a patch for the WindowsWebDNA build soon.> -----Original Message-----> From: WebCatalog Talk> [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf> Of John Peacock> Sent: Tuesday, September 10, 2002 6:53 AM> To: WebCatalog Talk> Subject: Re: One Hour Email>>> Kenneth Grome wrote:> > Does this mean that the server admin has configured something> > improperly, and that improper configuration is more than likely the> > cause of this problem?> >>> OK, my face is red now:>> > Return-path:
> > Received: from delenn.rlpgbooks.com (www.altamirapress.com> [12.38.22.10]) by rlpgbooks.com> > (Rockliffe SMTPRA 5.2.4) with SMTP id> ;> > Mon, 9 Sep 2002 09:46:12> > Message-ID: > > Date: Mon, 09 Sep 2002 09:44:15>> This is my own server and I can assure you that I have my TZ> set properly. ;~)>> I know what the problem is, though, now that I can be sure> the systems are set> correctly. Under NT/W2k, before calling localtime(), it is> required that the> function _tzset() be called. This routine will set the> proper timezone> parameters based on either the TZ environment variable (mine> would be EST5EDT)> or on the system reported timezone. Only after this> initialization has taken> place, will localtime() report the correct time.>> Scott, can you check the Win32 code???>> John>> --> John Peacock> Director of Information Research and Technology> Rowman & Littlefield Publishing Group> 4720 Boston Way> Lanham, MD 20706> 301-459-3366 x.5010> fax 301-429-5747>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I have confirmed this to be a bug with the Windows builds of WebDNA. I amtesting the WebDNA 4.5 release build on a machine that is set to PST (PDT),and the DATE header generated by the sendmail thread is off by one hour asreported.It is true that the engine does not make the call to _tzset() before thecall to get the system time. However, the call to _tzset() will only havean effect if there is a TZ environment variable set on the system. If thereis a TZ environment variable set, then the _tzset() call will use the TZvalue to set other environment variables that store information related totime zone and 'daylight savings' state. If the TZ environment variable isnot set, then the next call to tzset(), ftime() or localtime() will populatethe other environment variables based upon the Control Panel's Date/Timeapplication settings. In my case, adding the _tzset() call did not fix theproblem.I looks like the fix involves simply checking the data structure returnedfrom localtime() and checking the state of the daylight-savings-time flag,and then making the necessary adjustments to the GMT offset. I am currentlytesting this fix. If all goes well, we will release a patch for the WindowsWebDNA build soon.> -----Original Message-----> From: WebCatalog Talk> [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf> Of John Peacock> Sent: Tuesday, September 10, 2002 6:53 AM> To: WebCatalog Talk> Subject: Re: One Hour Email>>> Kenneth Grome wrote:> > Does this mean that the server admin has configured something> > improperly, and that improper configuration is more than likely the> > cause of this problem?> >>> OK, my face is red now:>> > Return-path: > > Received: from delenn.rlpgbooks.com (www.altamirapress.com> [12.38.22.10]) by rlpgbooks.com> > (Rockliffe SMTPRA 5.2.4) with SMTP id> ;> > Mon, 9 Sep 2002 09:46:12> > Message-ID: > > Date: Mon, 09 Sep 2002 09:44:15>> This is my own server and I can assure you that I have my TZ> set properly. ;~)>> I know what the problem is, though, now that I can be sure> the systems are set> correctly. Under NT/W2k, before calling localtime(), it is> required that the> function _tzset() be called. This routine will set the> proper timezone> parameters based on either the TZ environment variable (mine> would be EST5EDT)> or on the system reported timezone. Only after this> initialization has taken> place, will localtime() report the correct time.>> Scott, can you check the Win32 code???>> John>> --> John Peacock> Director of Information Research and Technology> Rowman & Littlefield Publishing Group> 4720 Boston Way> Lanham, MD 20706> 301-459-3366 x.5010> fax 301-429-5747>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Scott Anderson
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:
Change in Host? (1999)
quitting (1997)
New Command prefs ... (1997)
Looking for a host (1997)
Redirect to _parent? (2002)
X etc.... (1999)
problem with applets embedded in tpl files (1997)
Bulletin Board needed (2007)
[ShowIf] and empty fields (1997)
Empty Shopping Carts? (1998)
rotating thumbnails (1997)
Separate SSL Server (1997)
Problem with Formulas.db (1998)
Webstar 1.3.1 PPC (1997)
[REDIRECT url=http://isd.smithmicro.com/] into New Window? (2002)
carriage returns in data (1997)
Final Receipt (1999)
[WebDNA] [append] does not add the newline char at the end of the new record?! (which causes subsequent [search] to fail.) (2009)
WebCat for Unix?? (1997)
WebCatalog2 for NT Beta Request (1997)