Skip to content

Commit

Permalink
Fixed incorrect "undefined" (a string) returned from null dates for h…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaakko Heusala committed Sep 9, 2024
1 parent ae3e93b commit ee18f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/utils/EntityUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export class EntityUtils {

public static parseDateAsString (input : Date | string | undefined) : string | undefined {
if ( (isString(input) && trim(input)) === '' || input === undefined ) return undefined;
return `${parseIsoDateStringWithMilliseconds(input, true)}`;
return parseIsoDateStringWithMilliseconds(input, true);
}

public static parseMySQLDateAsIsoString (value : any) : string | undefined {
Expand Down

0 comments on commit ee18f25

Please sign in to comment.