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:

REPOST: Upgrage pricing... The future of WebCatalog is comingwith 4.0... (2000) Code Question (2001) Generating unique SKU from [cart] (1997) Replace context problem ... (1997) PCS Frames (1997) List of WebDNA users (2002) Hiding HTML and breaking the page (1997) WebTEN vs webSTAR (1998) [WebDNA] [thisautonumber] and [lastautonumber] (2011) WCS Newbie question (1997) Prices Dropped (1998) Mozilla/4. and Browser Info.txt (1997) Multiple fields on 1 input (1997) Re1000002: Setting up shop (1997) [OT], Sorta: WebCat-Talk List (2000) WebCommerce: Folder organization ? (1997) Mult-File Upload w/ Web Star (2000) ImageMap (1997) [searchString] (1997) A few questions. . . (1997)