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.8In 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 codePaulThis 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:
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.8In 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 codePaulThis 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:
Banner DNA (1997)
Configuring E-mail (1997)
redirect with frames (1997)
Emailer freezes under OSX (2003)
What am I missing (1997)
Search results problem (2003)
3.0 [TEXT] variables (1998)
Refreshing document (2000)
Help! WebCat2 bug (1997)
Running _every_ page through WebCat ? (1997)
DataBaseHelper Flawed (1997)
[WebDNA] cron - curl to replace triggers.. (2009)
protect acting looney?? (2003)
Setting up shop (1997)
Banners (1997)
Why are some admin pages not encrypted? (2000)
Database cannot be opened (2005)
off topic - dna snipets (1997)
Searching multiple fields (1997)
Windows 2.1b2 Append Bug? (1997)