Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: TT-593 unit test implementation
  • Loading branch information
wilc0519 committed Apr 27, 2022
commit 6bedc076a34e93d83ed2fb4b9e9005a027285146
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import * as moment from 'moment';

export class ParseDateTimeOffset {

parseDateTimeOffset(date: string, offset): string {
return moment.utc(date).utcOffset(-1 * offset).format('HH:mm');
parseDateTimeOffset(date:string, offset): string{
if(date == null || date == undefined || date == '') return 'In progress';
return moment.utc(date).utcOffset(-1*offset).format("HH:mm");
}
}
You are viewing a condensed version of this merge commit. You can view the full changes here.