on 08-24-2015 4:48 PM
Hi Experts,
I am facing a issue with the date calculation in BPA wherein a redwood expression is calculating random dates. My requirement is to calculate a date with an offset of 7 hours. The expression which is use is
=Time.format(Time.expression(Time.now(),'subtract 7 hour truncate day'), 'dd.MM.yyyy') .
for some cases it seems that the logic is calculating dates based on creation date rather than time know. Also, its quite random and doesn't happen frequently.
Is this a known issue or something is missing.
Thanks,
RItesh
Hello,
Is your parameter setup as a Runtime parameter or not? Runtime parameters should evaluate at the time of the job start.
Also it might be better to also set the expected TimeZone as well to be sure you get the date back in the correct time zone:
=Time.format(Time.expression(Time.now('Europe/Amsterdam'),'subtract 7 hour truncate day'), 'dd.MM.yyyy')
Regards Gerben
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.