Skip to content

Commit

Permalink
Set the getNow prop to the date picker so that the now will make use …
Browse files Browse the repository at this point in the history
…of dayjs that has timezone set. (#2361)

* Set the getNow prop to the date picker so that the now will make use of dayjs that has timezone set.

* Added @bigbinary/neeto-datepicker to resolutions

---------

Co-authored-by: Abhay V Ashokan <[email protected]>
  • Loading branch information
deepakjosp and AbhayVAshokan authored Nov 1, 2024
1 parent c176b11 commit 35202f9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"@bigbinary/eslint-plugin-neeto": "^1.1.30",
"@bigbinary/neeto-cist": "1.0.3",
"@bigbinary/neeto-commons-frontend": "^3.0.10",
"@bigbinary/neeto-datepicker": "^1.0.4",
"@bigbinary/neeto-hotkeys": "1.0.4",
"@bigbinary/neeto-icons": "^1.9.22",
"@reach/auto-id": "0.15.0",
Expand Down Expand Up @@ -228,7 +229,8 @@
"@storybook/react/**/glob-parent": "5.1.2",
"**/trim": "0.0.3",
"tailwindcss/**/postcss": "7.0.36",
"cssnano/**/nth-check": "2.0.1"
"cssnano/**/nth-check": "2.0.1",
"rc-picker": "@bigbinary/neeto-datepicker"
},
"directories": {
"src": "src"
Expand Down
1 change: 1 addition & 0 deletions src/components/DatePicker/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ const DatePicker = forwardRef(
},
}),
}}
getNow={dayjs}
nextIcon={<IconOverride icon={Right} />}
prevIcon={<IconOverride icon={Left} />}
superNextIcon={<IconOverride icon={Right} />}
Expand Down
27 changes: 27 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2895,6 +2895,13 @@
dependencies:
regenerator-runtime "^0.14.0"

"@babel/runtime@^7.24.7":
version "7.26.0"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.26.0.tgz#8600c2f595f277c60815256418b85356a65173c1"
integrity sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==
dependencies:
regenerator-runtime "^0.14.0"

"@babel/template@^7.18.10", "@babel/template@^7.3.3":
version "7.18.10"
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71"
Expand Down Expand Up @@ -3047,6 +3054,18 @@
uuid "^9.0.0"
zustand "4.3.2"

"@bigbinary/neeto-datepicker@^1.0.4":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@bigbinary/neeto-datepicker/-/neeto-datepicker-1.0.4.tgz#7759463468b63f8db18ac11b51af4dfc79f3813c"
integrity sha512-JlG0b+G3F3G0IadvcL/6f9jp4Kh56UMS9ctsYnHs8+oFhyqLm2BwfBDYd7/WEGFmTI97hch9/j6mCH2A6YCzMA==
dependencies:
"@babel/runtime" "^7.24.7"
"@rc-component/trigger" "^2.0.0"
classnames "^2.2.1"
rc-overflow "^1.3.2"
rc-resize-observer "^1.4.0"
rc-util "^5.43.0"

"@bigbinary/[email protected]":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@bigbinary/neeto-hotkeys/-/neeto-hotkeys-1.0.4.tgz#03358c7eb27c430b69d8bf786a4a278fdf7a280f"
Expand Down Expand Up @@ -13994,6 +14013,14 @@ rc-util@^5.38.0, rc-util@^5.38.1, rc-util@^5.39.1:
"@babel/runtime" "^7.18.3"
react-is "^18.2.0"

rc-util@^5.43.0:
version "5.43.0"
resolved "https://registry.yarnpkg.com/rc-util/-/rc-util-5.43.0.tgz#bba91fbef2c3e30ea2c236893746f3e9b05ecc4c"
integrity sha512-AzC7KKOXFqAdIBqdGWepL9Xn7cm3vnAmjlHqUnoQaTMZYhM4VlXGLkkHHxj/BZ7Td0+SOPKB4RGPboBVKT9htw==
dependencies:
"@babel/runtime" "^7.18.3"
react-is "^18.2.0"

rc-virtual-list@^3.14.2:
version "3.14.5"
resolved "https://registry.yarnpkg.com/rc-virtual-list/-/rc-virtual-list-3.14.5.tgz#593cd13fe05eabf4ad098329704a30c77701869e"
Expand Down

0 comments on commit 35202f9

Please sign in to comment.