Skip to main content

I have a SharePoint list that displays local datetime from many different local time zones, this is the datetime required. The reader returns datetime fields in UTC only. The time offset could be 6 to 8 hours. I have no way to know what local timezone the records was entered in, thus I cannot determine what the time offset should be. Is there a way to read the displayed datetime, not UTC?

For example, two records with different time offsets

Sharepoint

Value read by FME

Formatted

Offset

9/14/2019 21:00

20190915030000+00

9/15/2019 3:30

6 hours

2/14/2019 21:55

20190215045500+00

2019/02/15 4:55

7 hours

Thanks in advance,

Kathy

Hi @kathyjbryce,

I confess i'm not a SharePoint expert but I did notice something in the SharePoint reader documentation under DateTime Field Type that I think might help. According to the doc:

SharePoint stores values in UTC time zone only.
The SharePoint web interface adjusts values to the local time zone.
The SharePoint reader converts values to FME datetime format.

So it is expected behavior for FME to convert the local time zones into UTC on read. Have you taken a look at the DateFormatter by chance as a potential solution? 


Reply