@fr0st/datetime 7.0.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fr0st/datetime",
3
- "version": "7.0.0",
3
+ "version": "8.0.0",
4
4
  "private": false,
5
5
  "description": "Immutable date and time handling for JavaScript with locale-aware formatting, parsing, calendar math, and IANA or fixed-offset time zones.",
6
6
  "keywords": [
package/src/date-time.js CHANGED
@@ -1816,7 +1816,7 @@ export default class DateTime {
1816
1816
  * Formats the current date using "yyyy-MM-dd'T'HH:mm:ss.SSSxxx".
1817
1817
  * @return {string} The formatted date string.
1818
1818
  */
1819
- toISOString() {
1819
+ toIsoString() {
1820
1820
  return this
1821
1821
  .withLocale('en')
1822
1822
  .withTimeZone('UTC')
@@ -1829,7 +1829,7 @@ export default class DateTime {
1829
1829
  */
1830
1830
  toJSON() {
1831
1831
  return this.isValid ?
1832
- this.toISOString() :
1832
+ this.toIsoString() :
1833
1833
  null;
1834
1834
  }
1835
1835