PR fixes, extract format start and finished dates
[arvados-workbench2.git] / src / common / formatters.ts
index ae50ee8adda3ace82a380b0714961e3ea4fb4394..60e6cd59c53e284a929cd6143c618020537ffd3a 100644 (file)
@@ -4,7 +4,7 @@
 
 import { PropertyValue } from "~/models/search-bar";
 
-export const formatDate = (isoDate?: string) => {
+export const formatDate = (isoDate?: string | null) => {
     if (isoDate) {
         const date = new Date(isoDate);
         const text = date.toLocaleString();