Jasmine Clock Mocking or Manual Time-Zone Stubbing for Date Conversion
Goal Choose a consistent strategy for testing date-conversion logic that must behave identically across regional time zones. Constraint Jasmine's jasmine.clock() replaces the global Date constructor, but it does not alter the value returned by Intl.DateTimeFormat().resolvedOptions().timeZone . Code that formats dates using Intl therefore continues to use the