Skip to content

Latest commit

 

History

History
181 lines (141 loc) · 11.7 KB

CHANGELOG.md

File metadata and controls

181 lines (141 loc) · 11.7 KB

SwiftDate

Carthage compatible CI Status Version License Platform

CHANGELOG


Fixes

  • #370 Cannot format colloquial date when a time component value is zero and allowedComponents does not contains lower time components (ie. cannot print "today" when set formatter to accept only allowedComponents = [.day] and day difference between dates is zero).
  • #371 DateInRegionFormatter crashes with any non-default .allowedComponents.

New Features

  • #365 Brazilian Portuguese support (thanks to @ipedro)

Fixes

  • #364 Fixes Japanaese translation

New Features

  • #353 Timezone, region and locale are now public accessible from Region (read-only)
  • #354 Added Vietnamese translation (thanks to @solbadguyky)
  • #355 Added Japanese translation (thanks to @bati668)
  • #360 Catalan translation

Fixes

  • #359 Wrong colloquial string ("just now") when gap between two dates are expressed in minutes and the left comparing operand is a future date.
  • #349 Fixed an issue with ISO8601Formatter where we need to manually set the locale to "en_US_POSIX" in order to get correct results (ie. in 12/24h cases).
  • #350 Fixed relevant time formatting for Danish translation
  • #358 Missing German translation strings are now added.
  • #361 Minor fixes for unit test reports
  • #362 Added tests for iSO8601 formatter with .internetDateTimeExtended.
  • #363 Fallback to main language code when language code + region code is not available (ie. "fr-BE" fall in "fr-FR").

New Features

  • #214, Added .next(day:) both for Date and DateInRegion to get the next weekday (ie. "next friday from today") after specified date.
  • #310 Added static func .dates(between:and:increment:) both for Date and DateInRegion which allows to enumerate dates between two interval with given increment in term of DateComponents.
  • #337 DateComponents now implements .in() func you can use to express an interval (like using TimeInterval) in terms of other time units (for example let x = 120.seconds.in(.minute) will return 2 minutes).
  • #348 DateComponents can now be merged using && operator. So if you have A = 1.hours, 3.minutes, 2.seconds and B = 1.year, 40.minutes, using let C = A && B you will get a new DateComponents instance with: C = 1.year, 1.hours, 43.minutes, 2.seconds.
  • #340, #320 Added Spanish support (thanks to @Sepho and @adrimarti).
  • #323, Added Korean support (thanks to @KisukPark).
  • #328, Added Slovak support (thanks to @beretis).
  • #329, Added Danish support (thanks to @emilpedersen).
  • #331, Added Czech support (thanks to @rbukovansky).
  • #187, Added .startWeek (get the first day of the sender's week) and .endWeek (get the last day of the sender's week) both for Date and DateInRegion

Fixes:

  • #344 .inDateDefaultRegion() is also used as standard value for region in .add() function of the Date object
  • #339 Fixed an issue with reverse interval fatal error when subtracting two dates
  • #317 Fixed an issue with language transations. Now all translations are specified in term of language+region settings (ie. en-US and not only en). All translation files were updated to reflect this new behaviour.
  • #346 Workaround to fix a rounding problem when comparing two Date or DateInRegion in terms of .nanosecond granularity. Now the comparision result is correct.
  • #315, Fixed an issue with Date().add(components:) and daylight saving dates.
  • #319, Added missing translation for german loc (thanks to @jaweinkauff)

Release Date: 2012/12/20 Zipped Version: Download

  • #306 Fixed a date ordering issue with time interval
  • #308 Added singular component for .year,.month,.day,.hour,.minute,.second time components
  • #309 Added Traditional Chinese support (thanks to @rynecheow)
  • #314 Restored French translation strings

  • #303 Date.defaultRegion() is now set to Region.Local() as specified in doc (not Region.GMT())
  • #302 Fixed an issue with colloquial dates and future dates; also fixed an issue when reporting colloquial differences expressed in weeks
  • #301 Add .locale property in ISO8601DateTimeFormatter

  • Release Date: 2012/10/10
  • Zipped Version: [Download 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

  • #277: Remove throws from Date.add(components:) in Date+Math.swift
  • #276: Remove Development team from framework

Changes:

  • #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.

  • Release Date: 2012/09/30

  • Zipped Version: Download 4.0.2

  • Minor fix for cocoapods compatibility (SwiftDate.bundle was not copied)

### SwiftDate 4.0.0 --- - **Release Date**: 2012/09/29 - **Zipped Version**: [Download 4.0.0](https://github.com/malcommac/SwiftDate/releases/tag/4.0.0)
  • Major rewrite, fully compatible with Swift 3.0
  • Function names and parameter now fully adopt Swift conventions (we should make a complete list of changes soon)
  • Various fixes with locale management and timezones
  • Web site and complete documentation
  • Jazzy support
  • Unit tests now compiles under XCode 8 and Swift 3