Facing issue with Schedule and TimeZone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-11-2024 06:21 AM
Hello Everyone, I'm facing an issue with the Schedule and Timezone.
Requirement - Need to send additional Approval if the change window is in Working Hours.
Note - The instance and the user who is creating the change are in Australia/Melbourne Timezone.
Schedule(cmn_schedule) also in Australia/Melbourne.
1. I have created an Australia/Melbourne schedule and schedule entry for Monday to Friday 6:00:00 to 22:00:00
2. Then Created a change request which change the planned start date is on Monday (2024-01-08 16:11:40).
3. Now from the BG Script I'm checking planned start date is on schedule or not but it is showing it is not on schedule.
below is the script
-------------------------------------------------------- Script -------------------------------------------------------------------------
-------------------------------------------------------- Script -------------------------------------------------------------------------
out put
*** Script: GMT Start time -2024-01-08 05:11:40
*** Script: Australia/Melbourne Start time - 2024-01-08 16:11:40
*** Script: Not In Schedule No Need Approval
And also if I'm trying to print getDayofWeek if date is on Sunday it's giving 1 some times and 7 some times
Could you please someone help how to get this requirement
Thanks in advance
Ganasekhar
- Labels:
-
Change Management