Re: One Hour Email

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 43296
interpreted = N
texte = ScottGreat service :)-- Stuart Tremain idfk web developments - AustraliaOn Wednesday, 11 September 2002, Scott Anderson wrote: >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/ >------------------------------------------------------------- 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)
ScottGreat service :)-- Stuart Tremain idfk web developments - AustraliaOn Wednesday, 11 September 2002, Scott Anderson wrote: >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/ >------------------------------------------------------------- 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/ 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:

NT lockup (1998) Quantity/price formula (1998) Adding a product from another site (1997) PCS Emailer's role ? (1997) Creating a back button (1999) Date problems-more (1997) Browser Detection (2002) Problem with Formulas.db (1998) Browser Problem?!? Still getting Error message using POST! (1997) Problems when user hit back (2000) Graphical display of sales volume (2003) No Access warning when caching HTML files (1997) Up and running ... at last !! (1997) Problems adding stuff to the shopping cart. (1997) Field validation problem (1999) binary data in mySQL database (2002) Exclamation point (1997) Deleting Orders (1997) [WebDNA] for a rainy day.. if ever/when the hood is up again on the [function]/[return] code (2011) Server crash (1997)