refactor(nc-gui): revise comment

This commit is contained in:
Wing-Kam Wong
2023-05-22 12:37:41 +08:00
parent d9c8fe48f8
commit 394292443c

View File

@@ -72,7 +72,7 @@ export const renderValue = (result?: any) => {
// or YYYY-MM-DD hh:mm:ss+/-xx:yy (ext)
return result.replace(/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:[+-]\d{2}:\d{2})?/g, (d: string) => {
// TODO(timezone): retrieve the format from the corresponding column meta
// assume hh:mm at this moment
// assume HH:mm at this moment
return dayjs(d).isValid() ? dayjs(d).format('YYYY-MM-DD HH:mm') : d
})
}