Hello everyone! I have run across an interesting issue. I created a form which my users use a calendar pull down to select a date in the future. When they select the start date, I calculate the end date for 7 days later and adding an additional 7 hours to the end date so the end time would show 2022-02-07 07:00.
When my users select 2022-03-07 as a start date the end date gets set
2022-03-14 08:00
when it should be 2022-03-14 07:00.
Since our daylight savings time starts 2022-03-13 I'm wondering how I can programmatically work this field calculation for this one specific issue. I know this is also probably going to happen when our DST ends. So is there any way I can fix this little annoyance?
This is how I set the field.....
OnCallEnd=[entry.BeginDate.timestamp.add(604800000+25200000).formatDate(yyyy-MM-dd HH:mm)]
the 604800000 is 7 days ahead and the 25200000 is 7 hours ahead. I tried to set the timezone to the formatDate but that didn't help.
Any help in this little annoyance would be appreciated.
Thanks.
Glen