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

This PR fixes the compatibility between react-native and the last `luxon` versions (broken since [v2.5.0](https://github.com/moment/luxon/releases/tag/2.5.0)). It adds the `package.json` to the exports section ```diff "exports": { ".": { "import": "./src/luxon.js",...

This is a little funny: ```js base = DateTime.local(2018, 12, 31); base.plus({ days: 1 }).toRelativeCalendar({base}) //=> "next year" ``` This is technically correct, but I suspect most people would want...

issue: bug

Weeks should be expressed as days, isn't it? cf. https://en.wikipedia.org/wiki/ISO_8601#Durations ## Example ```js const duration = Duration.fromObject({ years: 3, months: 6, weeks: 1, days: 4, hours: 12, minutes: 30, seconds:...

issue: enhancement
up for grabs

**Tested with**: react-native: 0.63.3 The docs about react-native support (https://moment.github.io/luxon/docs/manual/matrix.html bottom of page) suggest to use [jsc-android-buildscripts](https://github.com/react-native-community/jsc-android-buildscripts) to fix missing Intl support on Android. Using the suggested solution I could...

Bumps [terser](https://github.com/terser/terser) from 5.14.1 to 5.14.2. Changelog Sourced from terser's changelog. v5.14.2 Security fix for RegExps that should not be evaluated (regexp DDOS) Source maps improvements (#1211) Performance improvements in...

dependencies

**Is your feature request related to a problem? Please describe.** For some units of time, rounding down is very unintuitive. It's probably fine if 29.99 minutes rounds down to 29,...

**Describe the bug** - Consume https://moment.github.io/luxon/es6/luxon.min.js somewhere - Run `DateTime.fromISO('2019-01-01T05:00:00.000')` - Observe error: ``` TypeError: n is not a function or its return value is not iterable ``` Note that...

issue: bug
issue: infrastructure

**Describe the bug** For a react-native project; can't install luxon and `pod install`. Reported error is.. ``` [!] Invalid `Podfile` file: 783: unexpected token at 'Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json'...

Duration for businesses days are not calendar durations. Meaning that a day is 7 or 8 hours of work and a week probably 5 days. So if I say a...