[IMP] web: bump luxon lib from 3.0.1 to 3.4.2
**Changelog** **3.4.2 (2023-08-26)** - Fixes regression from 3.4.1 (moment/luxon#1493) **3.4.1 (2023-08-23)** - Fixes for regressions from 3.4.0 (moment/luxon#1482 and moment/luxon#1488) **3.4.0 (2023-08-08)** - Fix type checking on input zones - Fix Islamic months listing - Fix normalize() for negative inputs **3.3.0 (2023-03-03)** - Fix off-by-one in Interval#count (moment/luxon#1308) - Support formatting for custom zones (moment/luxon#1377) - Fix parsing for narrow spaces (moment/luxon#1369) - Handle leap year issue with AD 100 (moment/luxon#1390) - Allow parsing of just an offset **3.2.1 (2023-01-04)** - Fix for RFC-2822 regex vulnerability - Better handling of BCP tags with -x- extensions **3.2.0 (2022-12-29)** - Allow timeZone to be specified as an intl option - Fix for diff's handling of end-of-month when crossing leap years (moment/luxon#1340) - Add Interval.toLocaleString() (moment/luxon#1320) **3.1.1 (2022-11-28)** - Add Settings.twoDigitCutoffYear **3.1.0 (2022-10-31)** - Add Duration.rescale **3.0.4 (2022-09-24)** - Fix quarters in diffs (moment/luxon#1279) - Export package.json in package (moment/luxon#1239) **3.0.2 (2022-08-28)** - Lots of doc changes - Added DateTime.expandFormat - Added support for custom conversion matrices in Durations closes odoo/odoo#133599 Related: odoo/enterprise#46556 Signed-off-by: Luca Vitali (luvi) <luvi@odoo.com>
This commit is contained in:
@@ -28,7 +28,7 @@ export class ActivityCell extends Component {
|
||||
get closestDeadlineFormatted() {
|
||||
const date = luxon.DateTime.fromISO(this.props.closestDeadline);
|
||||
// To remove year only if current year
|
||||
if (new luxon.DateTime.now().year === date.year) {
|
||||
if (luxon.DateTime.now().year === date.year) {
|
||||
return date.toLocaleString({
|
||||
day: "numeric",
|
||||
month: "short",
|
||||
|
||||
+4603
-5832
File diff suppressed because it is too large
Load Diff
@@ -127,7 +127,7 @@ export function patchDate(year, month, day, hours, minutes, seconds) {
|
||||
* -120 => UTC-2
|
||||
*/
|
||||
export function patchTimeZone(offset) {
|
||||
patchWithCleanup(luxon.Settings, { defaultZone: new luxon.FixedOffsetZone.instance(offset) });
|
||||
patchWithCleanup(luxon.Settings, { defaultZone: luxon.FixedOffsetZone.instance(offset) });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -807,7 +807,7 @@ QUnit.module("Fields", (hooks) => {
|
||||
|
||||
QUnit.test("one2many with date and datetime", async function (assert) {
|
||||
const originalZone = luxon.Settings.defaultZone;
|
||||
luxon.Settings.defaultZone = new luxon.FixedOffsetZone.instance(120);
|
||||
luxon.Settings.defaultZone = luxon.FixedOffsetZone.instance(120);
|
||||
registerCleanup(() => {
|
||||
luxon.Settings.defaultZone = originalZone;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user