Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ public class AnalyticsHubTimeRangeSelection {
return previousTimeRangeDescription
}

//TODO: abandon usage of the ISO 8601 Calendar and build one based on the Site calendar configuration
init(selectionType: SelectionType,
currentDate: Date = Date(),
timezone: TimeZone = TimeZone.autoupdatingCurrent,
calendar: Calendar = Calendar(identifier: .iso8601)) {
timezone: TimeZone = TimeZone.current,
calendar: Calendar = Locale.current.calendar) {
var selectionData: AnalyticsHubTimeRangeData

switch selectionType {
Expand Down