Skip to content

Commit 493b2d3

Browse files
tidied up code
1 parent 0af7036 commit 493b2d3

File tree

1 file changed

+0
-2
lines changed
  • projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/utils

1 file changed

+0
-2
lines changed

projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/utils/date.pipe.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ export class DatePipe implements PipeTransform {
6161
if (this.formatTrans && format && format !== 'short') {
6262
// support for java style formatting strings for dates
6363
format = this.translateDateFormat(format);
64-
// resultDate = moment(offsetDate).format(format);
6564
resultDate = momentDate.format(format);
6665
} else {
6766
// RDM-1149 changed the pipe logic so that it doesn't add an hour to 'Summer Time' dates on DateTime field type
@@ -89,7 +88,6 @@ export class DatePipe implements PipeTransform {
8988
return this.transform(shortISO, zone, format);
9089
}
9190
// If it did include time, we want a full ISO string.
92-
// const thisMoment = moment(d).format(ISO_FORMAT);
9391
const thisMoment = moment(d).format(ISO_FORMAT_NO_TZ);
9492
return this.transform(thisMoment, zone, format);
9593
}

0 commit comments

Comments
 (0)