Browse Source

remove logs

pull/22619/head
erdemcaygor 1 year ago
parent
commit
1d4e693d5c
  1. 3
      npm/ng-packs/packages/core/src/lib/pipes/utc-to-local.pipe.ts

3
npm/ng-packs/packages/core/src/lib/pipes/utc-to-local.pipe.ts

@ -17,7 +17,6 @@ export class UtcToLocalPipe implements PipeTransform {
const dateInput = new Date(value); const dateInput = new Date(value);
if (isNaN(dateInput.getTime())) { if (isNaN(dateInput.getTime())) {
// Invalid date
return ''; return '';
} }
@ -26,10 +25,8 @@ export class UtcToLocalPipe implements PipeTransform {
const options: Intl.DateTimeFormatOptions = this.timezoneService.isUtcClockEnabled const options: Intl.DateTimeFormatOptions = this.timezoneService.isUtcClockEnabled
? { timeZone: this.timezoneService.getTimezone() } ? { timeZone: this.timezoneService.getTimezone() }
: undefined; : undefined;
console.log(locale, options);
return dateInput.toLocaleString(locale, options); return dateInput.toLocaleString(locale, options);
} catch (err) { } catch (err) {
console.log(err);
return value; return value;
} }
} }

Loading…
Cancel
Save