Re: Time code!

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 43566
interpreted = N
texte = Bob,Why not have a quick lookup database that has the DST dates entered into it? Then based on if current date matches or is greater than the change date adjust your cookie code that way?But also a dumb question, so does the cookie expire based on the client time? or the server time? If the client time, maybe a javascript to grab the client time (if that would even work that is) and set it that way?DaleOn Thursday, September 19, 2002, at 04:18 PM, Bob Minor wrote:> On 9/19/02 8:53 AM, John Peacock wrote: > >> What O/S do you have that doesn't know timezones? Every version of >> Unix, >> NT/W2K, and as far as I know classic Mac O/S all support timezones. >> Even VMS >> supports timezones (though not as easily as more modern O/S's). > So what would be the proper way to set a cookie so that it expired 1 > hour > from now. In the past I would set it like so: > > [SETCOOKIE name=cookieName&value=sample&expires=[format days_to_date %A, > %d-%b-%Y][math]{[date]}+funky calc to compensate for > midnight[/math][/format] [math time]{[time]}+{06:00:00}[/math] > GMT&path=/&domain=www.yourserver.com] > > I am 5 hours behind gmt time right now so the cookie would expire an > hour > later. When DST ends then I will be 6 hours behind gmt time and would > need > to change the cookie set for [math time]{[time]}+{07:00:00}[/math] or my > cookies will expire right when they are set. > > Am I missing some basic premise here? > > > Robert Minor ------------------------------------------------------------- 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: Time code! (Bob Minor 2002)
  2. Re: Time code! (John Peacock 2002)
  3. Re: Time code! (dale's stuff 2002)
  4. Re: Time code! (Gary Krockover 2002)
  5. Re: Time code! (Bob Minor 2002)
  6. Re: Time code! (John Peacock 2002)
  7. Re: Time code! (dale@gmr.dresdner.net 2002)
  8. Re: Time code! (Bob Minor 2002)
  9. Re: Time code! (John Peacock 2002)
  10. Re: Time code! (dale@gmr.dresdner.net 2002)
  11. Re: Time code! (Bob Minor 2002)
  12. Re: Time code! (John Peacock 2002)
  13. Re: Time code! (Bob Minor 2002)
  14. Re: Time code! (Alain Russell 2002)
  15. Re: Time code! (John Peacock 2002)
  16. Time code! (Bob Minor 2002)
Bob,Why not have a quick lookup database that has the DST dates entered into it? Then based on if current date matches or is greater than the change date adjust your cookie code that way?But also a dumb question, so does the cookie expire based on the client time? or the server time? If the client time, maybe a javascript to grab the client time (if that would even work that is) and set it that way?DaleOn Thursday, September 19, 2002, at 04:18 PM, Bob Minor wrote:> On 9/19/02 8:53 AM, John Peacock wrote: > >> What O/S do you have that doesn't know timezones? Every version of >> Unix, >> NT/W2K, and as far as I know classic Mac O/S all support timezones. >> Even VMS >> supports timezones (though not as easily as more modern O/S's). > So what would be the proper way to set a cookie so that it expired 1 > hour > from now. In the past I would set it like so: > > [SETCOOKIE name=cookieName&value=sample&expires=[format days_to_date %A, > %d-%b-%Y][math]{[date]}+funky calc to compensate for > midnight[/math][/format] [math time]{[time]}+{06:00:00}[/math] > GMT&path=/&domain=www.yourserver.com] > > I am 5 hours behind gmt time right now so the cookie would expire an > hour > later. When DST ends then I will be 6 hours behind gmt time and would > need > to change the cookie set for [math time]{[time]}+{07:00:00}[/math] or my > cookies will expire right when they are set. > > Am I missing some basic premise here? > > > Robert Minor ------------------------------------------------------------- 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/ dale@gmr.dresdner.net

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:

Install Webcatalog under NT4.0 and Microsoft IIS 2.0 (1997) Problem with updating to 2.1.1 (1998) 2nd WebCatalog2 Feature Request (1996) Special search (1998) Problems with [Search] param - Mac Plugin b15 (1997) [WebDNA] [table] and COMMA in a Field (2015) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Max Record length restated as maybe bug (1997) $Append for Users outside the ADMIN group (1997) Credit Card Number checking (1997) migrating from MacOS to unix (2000) Caching [include] files ... (1997) WebCatalog for guestbook ? (1997) [WebDNA] 17 years and.... (2013) ShoppingCart clearing code (2004) lookup and two records? (1997) FYI: virus alert (1996) F2 to F3 rocky transition (1997) RE: How to verify email address (1997) shownext problems (1998)