You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test [M3-10517]: Fix flaky "timerange-verification.spec.ts" test (#12967)
* simplify time range by removing timezone conversion
* cleanup tz
* avoid race condition by re-fetching the component
* Added changeset: Fix flakey timerange test
* Generates a date in Indian Standard Time (IST) based on a specified number of days offset,
102
-
* hour, and minute. The function also provides individual date components such as day, hour,
101
+
* Generates a date in UTC based on a specified number of hours and minutes offset. The function also provides individual date components such as day, hour,
103
102
* minute, month, and AM/PM.
104
-
*
105
-
* @param {number} daysOffset - The number of days to adjust from the current date. Positive
106
-
* values give a future date, negative values give a past date.
107
103
* @param {number} hour - The hour to set for the resulting date (0-23).
108
104
* @param {number} [minute=0] - The minute to set for the resulting date (0-59). Defaults to 0.
109
105
*
110
106
* @returns {Object} - Returns an object containing:
111
-
* - `actualDate`: The formatted date and time in IST (YYYY-MM-DD HH:mm).
107
+
* - `actualDate`: The formatted date and time in UTC (YYYY-MM-DD HH:mm).
112
108
* - `day`: The day of the month as a number.
113
109
* - `hour`: The hour in the 24-hour format as a number.
114
110
* - `minute`: The minute of the hour as a number.
@@ -324,8 +320,11 @@ describe('Integration tests for verifying Cloudpulse custom and preset configura
0 commit comments