RE: where is now() defined?

orchard <[email protected]>
Newsgroups gmane.comp.web.oscommerce.devel
Message-ID <0542ad1298e03d02e24f341c26569503@osCommerce-Forums>
This message was sent from: Development
http://forums.oscommerce.com/viewtopic.php?p=179809#179809
----------------------------------------------------------------

I think it's almost alway part of a query string, so it's difficult to know how else to change it.  One way would be to create a string[code]$now = 'now() - interval 3 hour'[/code] and then replace all occurrences of[code]'blah blah blah now() blah blah blah'[/code]with[code]'blah blah blah ' . $now . ' blah blah blah'[/code]It would still be a lot of substitutions, but you would only have to do it once.  After that you could edit the definition of $now.  Maybe it would be nice if osCommerce made this change as part of the standard code.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.