18 Commits

Author SHA1 Message Date
Wendelin
853059ac73
Add tests for common/datetime (#23658) 2025-01-09 15:47:32 +01:00
libe.net
b84e00b312
Unit Test for shiftDateRange (#23324)
Unit Test for Pull 23228

Co-authored-by: Wendelin <12148533+wendevlin@users.noreply.github.com>
2024-12-19 15:42:31 +01:00
Paul Bottein
f8ce7c2ce1
Don't use duration formatting for second unit (#23132)
Don't use duration formatting for sec unit
2024-12-04 13:17:47 +01:00
karwosts
f7c8c6e3e8
Dont floor duration for milliseconds (#23028)
* Dont floor duration for milliseconds

* remove ms
2024-11-27 17:27:03 +00:00
Paul Bottein
3411967fd9
Only use duration poly-fill when necessary (#23030) 2024-11-27 17:13:29 +01:00
Paul Bottein
164944ceff
Improve duration formatting (#23025) 2024-11-27 15:00:29 +01:00
Paul Bottein
a532b4461d
Use explicit duration format for state formatting (#23017) 2024-11-27 12:49:21 +01:00
Wendelin
bd0bfc1fbe
Rspack (#22807)
* Add rspack

* Remove TransformAsyncModulesPlugin from rspack

* Migrate all webpack usage to rspack

* Migrate tests to vitest

* Fix test suites

* Remove chai dependency

* Fix compute_state_display tests

* Fix resolveTimeZone

* Reduces test pipeline

* Revert test ci

* optimize chunk filtering

* Migrate landing-page to rspack

* Update rspack dependencies

* Add rsdoctor

* Fix prod build bundle size

* Use rsdoctor for demo stats

* Remove unused webpack configs

* Update build-scripts/rspack.cjs

Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>

* Fix eslint

* Update rspack

* Remove unused code

---------

Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>
2024-11-26 14:49:13 +01:00
Bram Kragten
780de42e4b
Allow to show times in the UI in the timezone of the server (#16799) 2023-06-13 12:12:13 +02:00
Christoph Wen, B.Sc
2ad6253b72
Add setting to localize numeric dates independent from language (#15770) (#16489) 2023-05-30 19:39:27 +00:00
Raman Gupta
a19ff5aef5
Add milliseconds support for duration sensors (#15895) 2023-03-26 23:52:18 +02:00
Adam Kapos
5e4b673751
Fix relative time above 22 hours (#15072)
fixes https://github.com/home-assistant/frontend/issues/14815
fixes undefined
2023-01-24 12:53:57 +00:00
Paul Bottein
40d0455936
Fix common tests (#14485) 2022-11-30 19:50:53 +01:00
Paul Bottein
907466d060
Add first weekday option in profile (#13991) 2022-10-10 16:58:27 +02:00
Michael Varrieur
0c800344d2
Add custom selectUnit, use in relativeTime function (#14008) 2022-10-10 14:26:02 +00:00
J. Nick Koston
145e5d7bc6
Format sensors with state class duration (#12426) 2022-04-26 02:07:11 +00:00
Michael Gorven
1010777139
Add weekday to formatTimeWeekday() (#11020) 2022-01-24 19:25:45 +01:00
Bram Kragten
1bccbd4173
Use browser default time and number formatting with polyfills if needed (#9481)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-09-29 23:34:52 +00:00