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:

Text data with spaces in them... (1997) Re:2nd WebCatalog2 Feature Request (1996) WebCat2 several catalogs? (1997) Fun with Dates - revisited (again) (1997) Forcing price recalculation in shopping cart (1998) convert characters (2003) sort problems....bug or brain fart? (1997) Still having problems with Authen (1997) Help! WebCat2 bug (1997) RAM variables (1997) Help! WebCat2 bug (1997) PCS Emailer's role ? (1997) Calculating multiple shipping... (1997) New WebCatalog Version !!! (1997) Where's Cart Created ? (1997) Talk list... (2000) More on the email templates (1997) Bulk Linebreak Changes (2002) Wrapping text (1998) Shipping formula problem (1997)