luxon icon indicating copy to clipboard operation
luxon copied to clipboard

⏱ A library for working with dates and times in JS

Results 243 luxon issues
Sort by recently updated
recently updated
newest added

**Describe the bug** When calling the method Duration#rescale, it gives incorrect result. **To Reproduce** This is the code in which I discovered the error. Create a Duration object like this...

**Describe the bug** When using luxon in frontend libraries like Vue.js and setting a luxon object as a reactive variable. Reading e.g. .weekNumber from the luxon object will trigger watchers....

issue: enhancement
needs thought

Interval.fromDateTimes(day.set({ day: firstDay, 'hour': 0, 'minute':0 }), day.set({ day: firstDay, 'hour': 2, 'minute':0, 'seconds':30 })).splitBy('hour') return 2 elements Interval.fromDateTimes(day.set({ day: firstDay, 'hour': 0, 'minute':0 }), day.set({ day: firstDay, 'hour': 2,...

issue: troubleshooting

When issue#283 was resolved the preset DATETIME_MED_WITH_WEEKDAY was not added to the documentation. I also added spaces to make the table correct.

**Is your feature request related to a problem? Please describe.** - We noticed there is `dt.toISOWeekDate()` but no `dt.toISOWeek()`, can we create a PR for it? **Describe the solution you'd...

**Describe the bug** I have created a duration that is 28 days long. After I normalize it it has the value 1 month. When I get the value of the...

issue: bug

_This issue is extracted from https://github.com/moment/luxon/issues/1419#issuecomment-1509608877_. [The recent updates to typings](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/64995) made it apparent that I wasn't aware of luxon's default behavior with respect to [validity](https://moment.github.io/luxon/#/validity). After reading about `throwOnInvalid`...

When `.until(…)` is called on an invalid `Datetime` instance, it returns the instance itself instead of an invalid `Interval`. **To Reproduce** ``` Interval.isInterval(DateTime.now().until(DateTime.invalid('demo'))) // true (ok) Interval.isInterval(DateTime.invalid('demo').until(DateTime.now())) // false! DateTime.isDateTime(DateTime.invalid('demo').until(DateTime.now()))...