Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #2037 - modifying a dayjs instance created with plugin timezone in UTC corrupts it #2118

Open
wants to merge 23 commits into
base: dev
Choose a base branch
from

Commits on Oct 21, 2022

  1. Configuration menu
    Copy the full SHA
    4542a1f View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2022

  1. Configuration menu
    Copy the full SHA
    cec0cc0 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2022

  1. Configuration menu
    Copy the full SHA
    4898982 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2023

  1. Configuration menu
    Copy the full SHA
    b64337c View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2023

  1. Configuration menu
    Copy the full SHA
    2e886c2 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2023

  1. Configuration menu
    Copy the full SHA
    ef1e96e View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2023

  1. Configuration menu
    Copy the full SHA
    bbb28a6 View commit details
    Browse the repository at this point in the history
  2. chore(release): 1.11.9 [skip ci]

    ## [1.11.9](iamkun/dayjs@v1.11.8...v1.11.9) (2023-07-01)
    
    ### Bug Fixes
    
    * Add null to min and max plugin return type ([iamkun#2355](iamkun#2355)) ([62d9042](iamkun@62d9042))
    * check if null passed to objectSupport parser ([iamkun#2175](iamkun#2175)) ([013968f](iamkun@013968f))
    * dayjs.diff improve performance ([iamkun#2244](iamkun#2244)) ([33c80e1](iamkun@33c80e1))
    * dayjs(null) throws error, not return dayjs object as invalid date ([iamkun#2334](iamkun#2334)) ([c79e2f5](iamkun@c79e2f5))
    * objectSupport plugin causes an error when null is passed to dayjs function (closes [iamkun#2277](iamkun#2277)) ([iamkun#2342](iamkun#2342)) ([89bf31c](iamkun@89bf31c))
    * Optimize format method ([iamkun#2313](iamkun#2313)) ([1fe1b1d](iamkun@1fe1b1d))
    * update Duration plugin add/subtract take into account days in month ([iamkun#2337](iamkun#2337)) ([3b1060f](iamkun@3b1060f))
    * update MinMax plugin 1. ignore the 'null' in args 2. return the only one arg ([iamkun#2330](iamkun#2330)) ([3c2c6ee](iamkun@3c2c6ee))
    semantic-release-bot authored and BePo65 committed Sep 23, 2023
    Configuration menu
    Copy the full SHA
    39308c9 View commit details
    Browse the repository at this point in the history
  3. chore(release): 1.11.10 [skip ci]

    ## [1.11.10](iamkun/dayjs@v1.11.9...v1.11.10) (2023-09-19)
    
    ### Bug Fixes
    
    * Add Korean Day of Month with ordinal ([iamkun#2395](iamkun#2395)) ([dd55ee2](iamkun@dd55ee2))
    * change back fa locale to the Gregorian calendar equivalent ([iamkun#2411](iamkun#2411)) ([95e9458](iamkun@95e9458))
    * duration plugin - MILLISECONDS_A_MONTH const calculation ([iamkun#2362](iamkun#2362)) ([f0a0b54](iamkun@f0a0b54))
    * duration plugin getter get result  0 instead of undefined ([iamkun#2369](iamkun#2369)) ([061aa7e](iamkun@061aa7e))
    * fix isDayjs check logic ([iamkun#2383](iamkun#2383)) ([5f3f878](iamkun@5f3f878))
    * fix timezone plugin to get correct locale setting ([iamkun#2420](iamkun#2420)) ([4f45012](iamkun@4f45012))
    * **locale:** add meridiem in `ar` locale ([iamkun#2418](iamkun#2418)) ([361be5c](iamkun@361be5c))
    * round durations to millisecond precision for ISO string ([iamkun#2367](iamkun#2367)) ([890a17a](iamkun@890a17a))
    * sub-second precisions need to be rounded at the seconds field to avoid adding floats ([iamkun#2377](iamkun#2377)) ([a9d7d03](iamkun@a9d7d03))
    * update $x logic to avoid plugin error ([iamkun#2429](iamkun#2429)) ([2254635](iamkun@2254635))
    * Update Slovenian locale for relative time ([iamkun#2396](iamkun#2396)) ([5470a15](iamkun@5470a15))
    * update uzbek language translation ([iamkun#2327](iamkun#2327)) ([0a91056](iamkun@0a91056))
    semantic-release-bot authored and BePo65 committed Sep 23, 2023
    Configuration menu
    Copy the full SHA
    7e2c794 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d3cfe79 View commit details
    Browse the repository at this point in the history
  5. build: use npx to run eslint

    BePo65 committed Sep 23, 2023
    Configuration menu
    Copy the full SHA
    1b6dafc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    093cf9c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c194751 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9561c98 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e0af8d9 View commit details
    Browse the repository at this point in the history
  10. test: increase test coverage of timezone to 100%

    Removed default value for input parameter 'options', as getDateTimeFormat
    is never called without an options parameter; so this case cannot be
    tested.
    BePo65 committed Sep 23, 2023
    Configuration menu
    Copy the full SHA
    ea7bf75 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f541369 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    96b49fd View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    f4e9819 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    1af5a59 View commit details
    Browse the repository at this point in the history
  15. test: add tests for timezone name and tz.offsetName

    'timezone name' is an internal field of dayjs (dayjs.$x.$timezone,
    while
    'tz.offsetName' is "official" name of the timezone returned
    by Intl.DateTimeFormat
    BePo65 committed Sep 23, 2023
    Configuration menu
    Copy the full SHA
    086c7f8 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    4cb0ef7 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. Configuration menu
    Copy the full SHA
    ed63026 View commit details
    Browse the repository at this point in the history