|
|
|
@ -20,8 +20,8 @@ const { showEditNonEditableFieldWarning, showClearNonEditableFieldWarning, activ
|
|
|
|
|
|
|
|
|
|
const renderResult = (result: string) => { |
|
|
|
|
// convert all date time values to local time |
|
|
|
|
// the input is always YYYY-MM-DD hh:mm:ss+00:00 |
|
|
|
|
return result.replace(/\b(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\+00:00)\b/g, (d) => { |
|
|
|
|
// the input is always YYYY-MM-DD hh:mm:ss+xx:yy |
|
|
|
|
return result.replace(/\b(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\+\d{2}:\d{2})\b/g, (d) => { |
|
|
|
|
// TODO(timezone): retrieve the format from the corresponding column meta |
|
|
|
|
// assume hh:mm at this moment |
|
|
|
|
return dayjs(d).utc().local().format('YYYY-MM-DD HH:mm') |
|
|
|
|