We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1d5656a + fff4b4f commit 6bedc07Copy full SHA for 6bedc07
src/app/modules/shared/formatters/parse-date-time-offset/parse-date-time-offset.ts
@@ -2,7 +2,8 @@ import * as moment from 'moment';
2
3
export class ParseDateTimeOffset {
4
5
- parseDateTimeOffset(date: string, offset): string {
6
- return moment.utc(date).utcOffset(-1 * offset).format('HH:mm');
+ parseDateTimeOffset(date:string, offset): string{
+ if(date == null || date == undefined || date == '') return 'In progress';
7
+ return moment.utc(date).utcOffset(-1*offset).format("HH:mm");
8
}
9
0 commit comments