Date in runtime fields

I currently have an issue with calculating the day of week in a runtime field.

My time field is stored in UTC
"isotimestamp": ["2021-06-01T23:55:38.726Z"]
and displays correctly according to my TZ (UTC+10)
isotimestamp Jun 2, 2021 @ 09:55:38.726

However, my runtime field calculates from the UTC time

emit(doc['isotimestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))

dayofweek Tuesday

How do I get ['isotimestamp'] to return in the appropriate TZ instead of UTC?

Thanks

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.