Re: What date is it anyway?

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57121
interpreted = N
texte = Brian, your experiences seem to be consistent with what we are getting. For the record, we are running WebDNA 5.1e on Mac OS X. [Date] should be 100% reliable but it appears not to be. Phil >I've seen similar problems naming files using [date]. On rare occasions (like one in 100,000), always using the same code and never having a variable named "date", [writefile abc[date %Y%m%d]] will give me file names like: > >abc2004 >abc200403 >abcdate >abc > >This is using WebDNA 5.0.0g on OSX. I don't have a solution, and it hasn't hit a particularly critical area - mostly this hits on my common code for logging page hits, and missing a hit or two a day isn't a big deal. It is disturbing, however. > >- brian > >On Mar 24, 2004, at 5:00 AM, Phil Ronchetti wrote: > >>I'm not using the date function inside an orderfile. The code looks like this: >> >>[text]var_ymd=[date %y%m%d][/text] >>[AppendFile file=backups/orders[var_ymd].txt][/AppendFile] >> >>Phil >> >>>At 12:35 PM +0000 3/24/04, Phil Ronchetti wrote: >>>>Hi, >>>> >>>>I'm getting some really weird date function behaviour. I use the date function to generate a filename such as ordersYYMMDD.txt (e.g. orders040324.txt). This works fine almost all of the time but occasionally the filename that is generated is incorrect. It happened today, I was expecting orders040324.txt but got orders031010.txt. I checked the date on the server and it was set correctly. >>> >>>Are you creating this file within an [orderfile...] context? If so, then the date is the date of the order, not the system date. ~Joe >>> ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: What date is it anyway? ( Paul Willis 2004)
  2. Re: What date is it anyway? ( devaulw@onebox.com 2004)
  3. Re: What date is it anyway? ( Paul Willis 2004)
  4. Re: What date is it anyway? ( Phil Ronchetti 2004)
  5. Re: What date is it anyway? ( Brian Fries 2004)
  6. Re: What date is it anyway? ( Phil Ronchetti 2004)
  7. Re: What date is it anyway? ( Joe D'Andrea 2004)
  8. What date is it anyway? ( Phil Ronchetti 2004)
Brian, your experiences seem to be consistent with what we are getting. For the record, we are running WebDNA 5.1e on Mac OS X. [date] should be 100% reliable but it appears not to be. Phil >I've seen similar problems naming files using [date]. On rare occasions (like one in 100,000), always using the same code and never having a variable named "date", [writefile abc[date %Y%m%d]] will give me file names like: > >abc2004 >abc200403 >abcdate >abc > >This is using WebDNA 5.0.0g on OSX. I don't have a solution, and it hasn't hit a particularly critical area - mostly this hits on my common code for logging page hits, and missing a hit or two a day isn't a big deal. It is disturbing, however. > >- brian > >On Mar 24, 2004, at 5:00 AM, Phil Ronchetti wrote: > >>I'm not using the date function inside an orderfile. The code looks like this: >> >>[text]var_ymd=[date %y%m%d][/text] >>[AppendFile file=backups/orders[var_ymd].txt][/AppendFile] >> >>Phil >> >>>At 12:35 PM +0000 3/24/04, Phil Ronchetti wrote: >>>>Hi, >>>> >>>>I'm getting some really weird date function behaviour. I use the date function to generate a filename such as ordersYYMMDD.txt (e.g. orders040324.txt). This works fine almost all of the time but occasionally the filename that is generated is incorrect. It happened today, I was expecting orders040324.txt but got orders031010.txt. I checked the date on the server and it was set correctly. >>> >>>Are you creating this file within an [orderfile...] context? If so, then the date is the date of the order, not the system date. ~Joe >>> ------------------------------------------------------------- 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://webdna.smithmicro.com/ Phil Ronchetti

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:

searchable list archive (1997) Multiple Stores and WebCatalog Prefs (1997) Encrypt/Decrypt (2007) no global [username] or [password] displayed ... (1997) WebCat b13 CGI -shownext- (1997) [Listfiles] vs Netfinder (1997) Random Image (1998) Cookie still not working (1999) How to Display text in empty fields (1997) RE: Automatic Forwarding using WebCat (1997) A quickie question (1997) Another bug to squash (WebCat2b13 Mac .acgi) (1997) Rollovers (1999) Is this possible, WebCat2.0 and checkboxes (1997) auto-stripping of spaces (1997) Too Much Rootbeer Free Offer (1997) [WebDNA] Suggested Platform (2013) really wierd browser truncating (1997) [WebDNA] Authorize.net SIM, Server Integration Method (2011) using showpage and showcart commands (1996)