Question
Custom Field Date time issues

I am trying to determine the shift based on datetime. Here is the use case:
- Shift 1: 07:00 - 14:59:59
- Shift 2: 15:00 - 22:59:59
- Shift 3: 23:00 - 06:59:59
However, it’s not working as expected according to the current code that I have ( Please see the attached screenshot) . The date in Appian writes with GMT adjustment .

