Re: What date is it anyway?

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57122
interpreted = N
texte = Yep I've seen this too. We create a [date] based variable (outside of any orderfile) for both the date in an affiliate tracking system and an in order creation system. We are running WebDNA 5.1e on OS X Server 10.2.8 In the last year the order creation system had errored 12 times (it runs the code every day) The affiliate tracking has been a nightmare, I assumed it was a coding error and fiddled with the page but the date has had random entries a dozen times this year. Looks like another 5.1 bug, along with the cart clearing code Paul This is used in two places [text]v_ymd=[date %y%m%d][/text] On 25 Mar 2004, at 13:52, Phil Ronchetti wrote: > 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/ > ------------------------------------------------------------- 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)
Yep I've seen this too. We create a [date] based variable (outside of any orderfile) for both the date in an affiliate tracking system and an in order creation system. We are running WebDNA 5.1e on OS X Server 10.2.8 In the last year the order creation system had errored 12 times (it runs the code every day) The affiliate tracking has been a nightmare, I assumed it was a coding error and fiddled with the page but the date has had random entries a dozen times this year. Looks like another 5.1 bug, along with the cart clearing code Paul This is used in two places [text]v_ymd=[date %y%m%d][/text] On 25 Mar 2004, at 13:52, Phil Ronchetti wrote: > 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/ > ------------------------------------------------------------- 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/ Paul Willis

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:

Multi shift click (1999) PIXO (1997) encryption madness (2003) updating checkbox in a db (1998) Plugin or CGI or both (1997) Showing unopened cart (1997) Quickbooks Invoice / Payment Generation (2006) Limiting user access to .tmpl files (1997) OFF-TOPIC: Stop reloading SRC page from cache ... (2003) [isfolder] and [filename] (1997) sort problems....bug or brain fart? (1997) webcat- multiple selection in input field (1997) Hiding HTML and breaking the page (1997) The Form authentication trick (2000) Many $WebCat.exe processes (1998) RE: setting cookies then redirecting? (1998) authorizenet/webmerchant (2000) Help name our technology! (1997) WebDNA 5.1 is now available! (2003) X etc.... (1999)