Why does today() function always returns day in GMT instead of day in the current user time zone set in profile. To overcome this we had to build a rule to return date in user time zone. Is this expected behaviour of today() function because it is no where mentioned in documentation that function always returns date in GMT
Discussion posts and replies are publicly visible
To get current Datetime without timezone issues:
now()
To get current Date without timezone issues:
a!localVariables( local!currentDatetime: now(), date( year(local!currentDatetime), month(local!currentDatetime), day(local!currentDatetime) ))
This logic return correctly todate(local(now())). you can use this also..