Date time field manipulation in custom Deluge function

Date time field manipulation in custom Deluge function

Hello,

I'm having trouble manipulating the date-time field in a custom function. I want to do a seemingly simple thing like add minutes to a date-time value but it keeps returning unexpected results.

Even basic date-time functions like getTime() don't seem to be working as expected.

When I do info on the date-time field "2020-09-15T14:00:00+10:00". However, when I use getTime(24) on this it returns "00:00". Why? According to the documentation this is not meant to happen, it should return 24 hour time.

When I use .addMinutes(30) on the same date-time field value as above it return this "15-Sep-2020 00:30:00". According to the documentation his isn't returning the expected value which should be "15-Sep-2020 14:30:00". Am I doing something incorrectly? Why is it not adding the correct number of minutes to the value?

I hope someone can help me because it seems like I'm always having problems with date-time fields in deluge. I don't understand if it is me or if it is Zoho.