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 am testing 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 as reported.It is true that the engine does not make the call to _tzset() before the call to get the system time. However, the call to _tzset() will only have an effect if there is a TZ environment variable set on the system. If there is a TZ environment variable set, then the _tzset() call will use the TZ value to set other environment variables that store information related to time zone and 'daylight savings' state. If the TZ environment variable is not set, then the next call to tzset(), ftime() or localtime() will populate the other environment variables based upon the Control Panel's Date/Time application settings. In my case, adding the _tzset() call did not fix the problem.I looks like the fix involves simply checking the data structure returned from localtime() and checking the state of the daylight-savings-time flag, and then making the necessary adjustments to the GMT offset. I am currently testing this fix. If all goes well, we will release a patch for the Windows WebDNA 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:

    
  1. Re: One Hour Email (Kenneth Grome 2002)
  2. Re: One Hour Email (Stuart Tremain 2002)
  3. Re: One Hour Email (Scott Anderson 2002)
  4. Re: One Hour Email (Kimberly D. Walls \(Ingram\) 2002)
  5. Re: One Hour Email (Brian Fries 2002)
  6. Re: Talk Archives Was: One Hour Email (Jesse Williams-Proudman 2002)
  7. Talk Archives Was: One Hour Email (Kimberly D. Walls \(Ingram\) 2002)
  8. Re: One Hour Email (Glenn Busbin 2002)
  9. Re: One Hour Email (Kimberly D. Walls \(Ingram\) 2002)
  10. Re: One Hour Email (John Peacock 2002)
  11. Re: One Hour Email (Kimberly D. Walls \(Ingram\) 2002)
  12. Re: One Hour Email (John Peacock 2002)
  13. Re: One Hour Email (Gary Krockover 2002)
  14. Re: One Hour Email (Kenneth Grome 2002)
  15. Re: One Hour Email (Kenneth Grome 2002)
  16. Re: One Hour Email (Gary Krockover 2002)
  17. Re: One Hour Email (Kenneth Grome 2002)
  18. Re: One Hour Email (Gary Krockover 2002)
  19. Re: One Hour Email (John Peacock 2002)
  20. Re: One Hour Email (Kenneth Grome 2002)
  21. Re: One Hour Email (Stuart Tremain 2002)
  22. Re: One Hour Email (Kimberly D. Walls \(Ingram\) 2002)
  23. Re: One Hour Email (Stuart Tremain 2002)
  24. Re: One Hour Email (Kimberly D. Walls \(Ingram\) 2002)
  25. Re: One Hour Email (Stuart Tremain 2002)
  26. Re: One Hour Email (Kimberly D. Walls \(Ingram\) 2002)
  27. Re: One Hour Email (Kimberly D. Walls \(Ingram\) 2002)
  28. Re: One Hour Email (Stuart Tremain 2002)
  29. Re: One Hour Email (Glenn Busbin 2002)
  30. One Hour Email (Kimberly D. Walls \(Ingram\) 2002)
I have confirmed this to be a bug with the Windows builds of WebDNA. I am testing 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 as reported.It is true that the engine does not make the call to _tzset() before the call to get the system time. However, the call to _tzset() will only have an effect if there is a TZ environment variable set on the system. If there is a TZ environment variable set, then the _tzset() call will use the TZ value to set other environment variables that store information related to time zone and 'daylight savings' state. If the TZ environment variable is not set, then the next call to tzset(), ftime() or localtime() will populate the other environment variables based upon the Control Panel's Date/Time application settings. In my case, adding the _tzset() call did not fix the problem.I looks like the fix involves simply checking the data structure returned from localtime() and checking the state of the daylight-savings-time flag, and then making the necessary adjustments to the GMT offset. I am currently testing this fix. If all goes well, we will release a patch for the Windows WebDNA 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)