Bug 269999

Summary: AX: VoiceOver reports the datetime value in the wrong time zone.
Product: WebKit Reporter: Andres Gonzalez <andresg_22>
Component: AccessibilityAssignee: Andres Gonzalez <andresg_22>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, andresg_22, apinheiro, cfleizach, dmazzoni, ews-watchlist, jcraig, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch none

Andres Gonzalez
Reported 2024-02-23 12:07:45 PST
.
Attachments
Patch (2.81 KB, patch)
2024-02-23 12:32 PST, Andres Gonzalez
no flags
Patch (2.71 KB, patch)
2024-02-23 13:38 PST, Andres Gonzalez
no flags
Radar WebKit Bug Importer
Comment 1 2024-02-23 12:08:05 PST
Andres Gonzalez
Comment 2 2024-02-23 12:32:31 PST
chris fleizach
Comment 3 2024-02-23 12:58:50 PST
Comment on attachment 470029 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=470029&action=review > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:1519 > + NSTimeZone *timeZone = [NSTimeZone localTimeZone]; no need to make a local variable for timeZone > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:1720 > + RetainPtr localDate = [NSDate dateWithTimeInterval:offset sinceDate:gmtDate]; don't think we need to make a RetainPtr her first. we should be able to just return the [NSDate ] which will be autoreleased
Andres Gonzalez
Comment 4 2024-02-23 13:38:43 PST
Andres Gonzalez
Comment 5 2024-02-23 13:39:57 PST
(In reply to chris fleizach from comment #3) > Comment on attachment 470029 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=470029&action=review > > > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:1519 > > + NSTimeZone *timeZone = [NSTimeZone localTimeZone]; > > no need to make a local variable for timeZone > > > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:1720 > > + RetainPtr localDate = [NSDate dateWithTimeInterval:offset sinceDate:gmtDate]; > > don't think we need to make a RetainPtr her first. we should be able to just > return the [NSDate ] which will be autoreleased All addressed.
chris fleizach
Comment 6 2024-02-23 13:59:08 PST
Comment on attachment 470033 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=470033&action=review > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:1519 > + return -1 * [[NSTimeZone localTimeZone] secondsFromGMTForDate:now]; this can be a 1 liner now! return -1 * [[NSTimeZone localTimeZone] secondsFromGMTForDate:[NSDate date]];
EWS
Comment 7 2024-02-23 18:13:16 PST
Committed 275265@main (26acc630c346): <https://commits.webkit.org/275265@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 470033 [details].
Note You need to log in before you can comment on or make changes to this bug.