![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
I've inherited an application that uses the now() function throughout to
present the current time for use in queries, calculations, etc. I don't have access to change the system time, so is there a way to override the output of the now() function instead of having to replace every instance of it with a variable? Thanks. |
| Sponsored Links |
|
|||
|
Yeah,offhand I can't think of an easy way to do this without replacing the
function with one of your own. As an interesting side note...this is something the Railo cfml engine allows, to set the system time zone on a per-application basis. So hopefully this will makes its way into ColdFusion as well eventually. |
|
|||
|
Yeah,offhand I can't think of an easy way to do this without replacing the
function with one of your own. As an interesting side note...this is something the Railo cfml engine allows, to set the system time zone on a per-application basis. So hopefully this will makes its way into ColdFusion as well eventually. |
|
|||
|
MaryJo wrote:
> As an interesting side note...this is something the Railo cfml > engine allows, to set the system time zone on a per-application basis. > So hopefully this will makes its way into ColdFusion as well eventually. Neat feature. That is good to know. Yes, I agree. I think the best you can do is to define your own function in your application.cfc. Give it a similar name like "cfTimeNow()". Then do a global replace in your code. |
|
|||
|
MaryJo wrote:
> As an interesting side note...this is something the Railo cfml > engine allows, to set the system time zone on a per-application basis. > So hopefully this will makes its way into ColdFusion as well eventually. Neat feature. That is good to know. Yes, I agree. I think the best you can do is to define your own function in your application.cfc. Give it a similar name like "cfTimeNow()". Then do a global replace in your code. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise