Skip to content

Commit

Permalink
Changed the the calendar and time zone to public variables
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsMoll committed May 4, 2019
1 parent 006d4c0 commit cb70256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/HTMLKit/HTMLRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ public struct HTMLRenderer {
var lingo: Lingo?

/// The calendar to use when rendering dates
var calendar: Calendar = Calendar(identifier: .gregorian)
public var calendar: Calendar = Calendar(identifier: .gregorian)

/// The time zone to use when rendering dates
var timeZone: TimeZone = TimeZone(secondsFromGMT: 0) ?? TimeZone.current
public var timeZone: TimeZone = TimeZone(secondsFromGMT: 0) ?? TimeZone.current

public init() {
formulaCache = [:]
Expand Down

0 comments on commit cb70256

Please sign in to comment.