Skip to content

Instantly share code, notes, and snippets.

Kunal Marwaha marwahaha

Block or report user

Report or block marwahaha

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View moment-2.24.0.md

moment 2.24.0 changelog

Bugfixes

  • #4445 [bugfix] (TypeScript) allow update of a single relativeTime handler
  • #4338 [bugfix] Fix startOf/endOf DST issues while boosting performance
  • #4849 [bugfix] locale/en-ie.js date format
  • #4887 [bugfix] Make Duration#as work with quarters
  • #4912 [bugfix] pipeline breaks with rollup v0.68
View moment-2.23.0.md

moment 2.23.0 changelog

Bugfixes

  • #4417 [bugfix] isBetween should return false for invalid dates
  • #4700 [bugfix] Fix #4698: Use ISO WeekYear for HTML5_FMT.WEEK

Features

  • #4563 [feature] Fix #4518: Add support to add/subtract ISO weeks
View unspiral.js
function unspiral(i, j) {
/**
* j
* ^
* |
* 12 13 14 15 16
* 11 2 3 4 17
* 10 1 0 5 18 --> i
* 9 8 7 6 19
* 24 23 22 21 20
View moment-2.22.2.md

moment 2.22.2 changelog

Bugfixes

  • #4564 [bugfix] Avoid using trim()
  • #4453 [bugfix] Treat periods as periods, not regex-anything period, for weekday parsing in strict mode.

Locale improvements

  • #4583 [locale] Fix #4568: Insert punjabi for "next"
View moment-2.22.1.md

moment 2.22.1 changelog

Bugfixes

  • #4495 [bugfix] Added HTML5_FMT to moment.d.ts

Locale improvements

  • #3989 [locale] pt: Fix capital letters in weekdays
  • #4478 [locale] ug-cn: put abbr in lowercase
View moment-2.22.0.md

moment 2.22.0 changelog

New locales

  • #4423 [new locale] Added Mongolian locale mn

Locale improvements

  • #4430 [locale] zh-tw: add spaces
  • #4458 [locale] Georgian - fixed incorrectly used word
View moment-2.21.0.md

moment 2.21.0 changelog

Bugfixes

  • #4391 [bugfix] Fix #4390: use offset properly in toISOString
  • #4361 [bugfix] remove ordinal for Turkish locale as they use `cardin…
  • #4360 [bugfix] Correct min/max TypeScript signatures
  • #4310 [bugfix] Fix #3883 lazy load parentLocale in defineLocale, fallback to global if missing

New locales

View moment-2.20.1.md

moment 2.20.1 changelog

Locale improvements

  • #4359 [locale] Fix Arabic locale for months (again)

Misc

  • #4357 [misc] Add optional parameter keepOffset to toISOString
View moment-2.20.0.md

moment 2.20.0 changelog

Bugfixes

  • #4312 [bugfix] Fix #4251: Avoid RFC2822 in utc() test
  • #4240 [bugfix] Fix incorrect strict parsing with full-width parentheses

Features

  • #4341 [feature] Prevent toISOString converting to UTC (issue #1751)
View moment-2.19.4.md

moment 2.19.4 changelog

Bugfixes

  • #4332 [bugfix] Fix weekday verification for UTC and offset days (fixes #4227)
  • #4336 [bugfix] Fix #4334: Remove unused function call argument

Misc

  • #4246 [misc] Add 'ss' relative time key to typescript definition
You can’t perform that action at this time.