Skip to content

Commit

Permalink
FIX-2512 Fix time zone offset bug (#2513)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasbruvik authored Aug 2, 2024
1 parent 5f13738 commit 00fcce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/WitsmlExplorer.Frontend/components/DateFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function getOffsetFromTimeZone(timeZone: TimeZone): string {
}

export function getOffset(dateString: string): string | null {
if (dateString.indexOf("Z") == dateString.length - 1) {
if (!dateString || dateString.indexOf("Z") == dateString.length - 1) {
return "Z";
}

Expand Down

0 comments on commit 00fcce9

Please sign in to comment.