mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
AAE-29442 moving to node 20.18.1 (#10500)
* AAE-0000 - moving to node 20.18.1 * AAE-29442 Adjusted to the new eslint rule
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
export class DateAlfresco extends Date {
|
||||
/**
|
||||
* Parses an ISO-8601 string representation of a date value.
|
||||
*
|
||||
* @param dateToConvert The date value as a string.
|
||||
* @returns The parsed date object.
|
||||
*/
|
||||
@@ -41,7 +40,6 @@ export class DateAlfresco extends Date {
|
||||
|
||||
/**
|
||||
* Parses the date component of a ISO-8601 string representation of a date value.
|
||||
*
|
||||
* @param dateToConvert The date value as a string.
|
||||
* @returns The parsed date object.
|
||||
*/
|
||||
@@ -50,7 +48,7 @@ export class DateAlfresco extends Date {
|
||||
// return new Date(str.replace(/T/i, ' '));
|
||||
|
||||
// Compatible with Safari 9.1.2
|
||||
const dateParts = dateToConvert.split(/[^0-9]/).map(function(s) {
|
||||
const dateParts = dateToConvert.split(/[^0-9]/).map(function (s) {
|
||||
return parseInt(s, 10);
|
||||
});
|
||||
return new Date(
|
||||
@@ -68,7 +66,6 @@ export class DateAlfresco extends Date {
|
||||
|
||||
/**
|
||||
* Parses the timezone component of a ISO-8601 string representation of a date value.
|
||||
*
|
||||
* @param dateToConvert The timezone offset as a string, e.g. '+0000', '+2000' or '-0500'.
|
||||
* @returns The number of minutes offset from UTC.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user