Releases: malcommac/SwiftDate
Releases · malcommac/SwiftDate
SwiftDate 4.0.6
SwiftDate 4.0.5
- #284 Fixed a crash with .colloquial() function and # weeks evaluation
- #287 Added Simplified Chinese translation (thanks to @codingrhythm)
- #288 Added Indonesian translation (thanks to @suprie)
- #286 Added French translation (thanks to @pierrolivier)
- #293 Added .withInternetDateTimeExtended as options of ISO8601DateTimeFormatter
- #292 .setDefaultRegion and .defaultRegion are now static func/prop of the Date object
SwiftDate 4.0.4
SwiftDate 4.0.3
- #271: Added fallback to english translation when required translation is not available for colloquial functions
- #112: Fixed an issue when optimization level is -fast
- #269: Fixed unnecessary strings printed in console when using .timeComponents() function
- #266: Removed unnecessary Region.copy() function
- #267: .absoluteDate is now a public property for DateInRegion
- #268: Added new german translation to SwiftDate.bundle
- #272: Failed to calculate a colloquial date when diff in seconds = 0. It throw a .FailedToCalculate exception.
- #274: Fixed a bug with padding in Time Components formatter. Now SwiftDate uses DateComponentsFormatter internally; old timeComponents/timeComponentsSinceNow (in Date and DateInRegion) are now deprecated (there are other functions with the same name which takes a ComponentsFormatterOptions struct as input). Also .string() function in TimeInterval is now replaced by a counterpart which take ComponentsFormatterOptions struct.
- #275: .formatter.useSharedFormatters in DateInRegion is now accessible so, if strictly needed user can user a custom instance of DateTime Formatters per single DateInRegion.
SwiftDate 4.0.2
This is a minor update.
Changes:
- Minor fix for cocoapods compatibility (SwiftDate.bundle was not copied)
SwiftDate 4.0.0
Major rewrite for Swift 3.