We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1cc10b6 + 816676b commit e8b4febCopy full SHA for e8b4feb
WooCommerce/Classes/ViewRelated/Dashboard/Analytics Hub/Time Range/AnalyticsHubTimeRangeSelection.swift
@@ -29,11 +29,10 @@ public class AnalyticsHubTimeRangeSelection {
29
return previousTimeRangeDescription
30
}
31
32
- //TODO: abandon usage of the ISO 8601 Calendar and build one based on the Site calendar configuration
33
init(selectionType: SelectionType,
34
currentDate: Date = Date(),
35
- timezone: TimeZone = TimeZone.autoupdatingCurrent,
36
- calendar: Calendar = Calendar(identifier: .iso8601)) {
+ timezone: TimeZone = TimeZone.current,
+ calendar: Calendar = Locale.current.calendar) {
37
var selectionData: AnalyticsHubTimeRangeData
38
39
switch selectionType {
0 commit comments