Skip to content

SwiftDate 4.0.3

Compare
Choose a tag to compare
@malcommac malcommac released this 02 Oct 11:39
· 836 commits to master since this release
  • #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.