I was playing around with our usage report today and noticed something strange. I'm seeing time recorded for usage later than the current time (see below).
The 'Now' column is using the now() function from a calculated item.
Any ideas why this might be happening? The most current actions look to be the one I am currently taking within SAS VA.
Could it be that now() is local, while the 'Time' is GMT?
Could it be that now() is local, while the 'Time' is GMT?
Yep, I think that is exactly what is happening. Thanks!
We have similar issues. now() will give us local time, but the timestamps in the system's user base (AIX) are in GMT. In the summer, I can see password changes at 5 am 😉
I was able to get around this by making a calculated item using this formula in VA:
TreatAs(_Datetime_, ( TreatAs(_Number_, 'Timestamp'n) - TreatAs(_Number_, TimeFromHMS(6, 0, 0)) ))
the 6 in the TimeFromHMS( ) function is how many hours you need to move it, in this case, I'm calculating for central time.
Visually it looks like this
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.