Forum Discussion

shanfaulks's avatar
shanfaulks
Frequent Visitor
3 years ago
Solved

Date fields not reflecting true local time

I have 2 date fields in a report that work perfectly in desktop version, but incorrectly in Service version. 

One date calulation field represents the date "yesterday", and the other shows the date the data was last refreshed. 

 

I have 2 date fields:

1) DAX formula: 
= DATEADD(LASTDATE('Calendar'[Date]),-1,DAY)
2) built into power query

= DateTime.FixedLocalNow()

 

Both fields work to an extent, but in the pubished version of the report, the times/dates don't reflect NZT (which is my time zone). It defaults to UTC which is not correct.

 

My browser and all other time functions on my laptop all work correctly. 

My PC is set to my timezone, my MS office and profile are all set to NZ timezone and lanuage. At a loss to find out why this isn't working properly! 

 

Help would be appreciated. 

 

2 Replies