You need to sign in to do that
Don't have an account?
Swarnava Saha
Workflow Action to Update field based on User's current local time
I have created a Workflow Rule with a workflow action to update a datetime field base on the user's current timezone's datetime (not the system timezone).
I want to use the below formula in my workflow action:
Datetime now = Datetime.now(); Integer offset = UserInfo.getTimezone().getOffset(now); Datetime local = now.addSeconds(offset/1000);
I am writing the formula in Workflow as:-
now.addSeconds( UserInfo.getTimezone().getOffset(Datetime.now())/1000 )
but it is showing some error How can I resolve this?
I want to use the below formula in my workflow action:
Datetime now = Datetime.now(); Integer offset = UserInfo.getTimezone().getOffset(now); Datetime local = now.addSeconds(offset/1000);
I am writing the formula in Workflow as:-
now.addSeconds( UserInfo.getTimezone().getOffset(Datetime.now())/1000 )
but it is showing some error How can I resolve this?
Swarnava Saha
This error is showing up in my case