Re: Fun with Dates - finally resolved but....

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12348
interpreted = N
texte = >Now, I had my suffix mapping set so that WC processes both .html and .tmpl >suffixes. Shouldn't that give me identical functionality regardless of >whether my code is in my index.html file versus index.tmpl?Yes, it should. My site is set up like that and it works properly ...>And yes the >code is completely identical. Is there something specific to the date/math >combo that requires that that code reside in a .tmpl file???No. I just made up my own suffix - .dx - and my date stuff works fine with that suffix. You can actually create any suffix you want, and as long as it's configured properly via WebSTAR Admin, you should be able to make WebCat2 process your pages with any suffix you choose.>If not I must >have a problem with my .html suffix mapping.Just make sure to have the CGI or the plugin (either one or the other, not both) set to process the suffixes you choose, .html, .tmpl, .dx, or any other suffix you want to create that's NOT already assigned to some other plugin or CGI.>Also I've happened upon an anomoly ('cause I would never cry BUG knowing >that Grant would just make me look foolish after showing me the errors of >my ways...).Hehe ... :) Are you referring to anyone I know?>Anyway here's my code which works for the most part: > > days.
> > >And here's the problem: As I test the various pull-down options everthing >appears to work fine - I get a small number of records with start dates in >the next month, a greater number in the next 2 months etc. until I hit the >6 month/180 days option. For whatever reason it coughs and only gives me >only 2-3 records instead of all the records that had been found with the >earlier options as it should... Any ideas??Thanks for your excellent description of the 'anomaly', Marty.It just so happens that the 6 month/180 day option is dealing with a new year - 1998 - whereas all the others options are dealing with dates in 1997 ... so maybe there's something going on when the year changes. I think what's happening is that the 180 day option is looking at records less than January 8, 1997 instead of less than January 8, 1998.Grant, what do you think about this possibility? (Don't worry, I'm not gonna call this one a bug, I learned my lesson the last time ... :)Sincerely, Ken Grome WebDNA Solutions Associated Messages, from the most recent to the oldest:

    
  1. Re: Fun with Dates - finally resolved but.... (Christer Olsson 1997)
  2. Re: Fun with Dates - finally resolved but.... (marty@artwerks.com (Marty Schmid) 1997)
  3. Re: Fun with Dates - finally resolved but.... (Kenneth Grome 1997)
  4. Fun with Dates - finally resolved but.... (marty@artwerks.com (Marty Schmid) 1997)
>Now, I had my suffix mapping set so that WC processes both .html and .tmpl >suffixes. Shouldn't that give me identical functionality regardless of >whether my code is in my index.html file versus index.tmpl?Yes, it should. My site is set up like that and it works properly ...>And yes the >code is completely identical. Is there something specific to the date/math >combo that requires that that code reside in a .tmpl file???No. I just made up my own suffix - .dx - and my date stuff works fine with that suffix. You can actually create any suffix you want, and as long as it's configured properly via WebSTAR Admin, you should be able to make WebCat2 process your pages with any suffix you choose.>If not I must >have a problem with my .html suffix mapping.Just make sure to have the CGI or the plugin (either one or the other, not both) set to process the suffixes you choose, .html, .tmpl, .dx, or any other suffix you want to create that's NOT already assigned to some other plugin or CGI.>Also I've happened upon an anomoly ('cause I would never cry BUG knowing >that Grant would just make me look foolish after showing me the errors of >my ways...).Hehe ... :) Are you referring to anyone I know?>Anyway here's my code which works for the most part: > > days.
> > >And here's the problem: As I test the various pull-down options everthing >appears to work fine - I get a small number of records with start dates in >the next month, a greater number in the next 2 months etc. until I hit the >6 month/180 days option. For whatever reason it coughs and only gives me >only 2-3 records instead of all the records that had been found with the >earlier options as it should... Any ideas??Thanks for your excellent description of the 'anomaly', Marty.It just so happens that the 6 month/180 day option is dealing with a new year - 1998 - whereas all the others options are dealing with dates in 1997 ... so maybe there's something going on when the year changes. I think what's happening is that the 180 day option is looking at records less than January 8, 1997 instead of less than January 8, 1998.Grant, what do you think about this possibility? (Don't worry, I'm not gonna call this one a bug, I learned my lesson the last time ... :)Sincerely, Ken Grome WebDNA Solutions Kenneth Grome

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:

[BULK] [WebDNA] Happy St. Patricks Day WEBDNA (2018) [WebDNA] Failed to aquire lock on database error (2011) b12 cannot limit records returned and more. (1997) The Guru Speaks (1998) Email problem.. (2004) Web Developer Product Awards (1997) Running _every_ page through WebCat-error.html (1997) Passing Cart variable to subdirectory files? (1997) Authentication (1998) Download capabilities (1997) Re:Multiple appends with checkboxes (1998) Need help with emailer- 2 issues (1997) Interfacing WebMerchant to www.fedex.com (1997) [Sum] function? (1997) international time (1997) Pithy questions on webcommerce & siteedit (1997) Help- Spam Bots are spamming my site. (2007) View Source from cache (1997) Emailer.Out (1998) cart converting to scientific notation format (2001)