Re: Time code!
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 43567
interpreted = N
texte = Bob Minor wrote:> 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?No, you are right on. Now that you explained what you _really_ wanted to do, rather than how you think you need to do it, I can give you some better advice. The best way to handle this is to create an include file which determines whether or not DST is in effect, since WebDNA does not include a GMT date format (even though _every_ single platform's CRTL supports that format).I'll see if I can whip something up, since I am also annoyed that I have [remember] to edit my MIMEHeaders.inc file twice a year for the same reason.John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 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/
Associated Messages, from the most recent to the oldest:
Bob Minor wrote:> 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?No, you are right on. Now that you explained what you _really_ wanted to do, rather than how you think you need to do it, I can give you some better advice. The best way to handle this is to create an include file which determines whether or not DST is in effect, since WebDNA does not include a GMT date format (even though _every_ single platform's CRTL supports that format).I'll see if I can whip something up, since I am also annoyed that I have [remember] to edit my MIMEHeaders.inc file twice a year for the same reason.John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 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/
John Peacock
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:
Webcat/Webmerchant (1998)
Caching [include] files ... (1997)
WebCat2: Found Items syntax, etc. (1997)
Quick Question About Sorting (1997)
2.1.5: Too Many Nested [xxx] (1998)
Separate SSL Server (1997)
syntax question, not in online refernce (1997)
Converting DOS database (2000)
How to include weather (2000)
[showif]/[hideif] question (1997)
[WriteFile] problems (1997)
Saving Text Areas with Orders (1997)
Resume Catalog ? (1997)
Semi OT: vbulletin and # viewing - how do that do that? (2003)
!@#$$@@# formulas database, tax and freight. (2002)
[OT] degree symbol (2003)
[removehtml]? (2000)
converted seed value? (1998)
Getting Emailer to send mail (1997)
[WriteFile] problems (1997)