|
@@ -46,7 +46,10 @@ const handleColumns = (columns: any) => {
|
|
|
...curColumn,
|
|
...curColumn,
|
|
|
formatter: ({ cellValue, row }: any) => {
|
|
formatter: ({ cellValue, row }: any) => {
|
|
|
if (!cellValue) return '--'
|
|
if (!cellValue) return '--'
|
|
|
- const formattedTime = dayjs(cellValue).format('MMM-DD-YYYY hh:mm A')
|
|
|
|
|
|
|
+ const formattedTime =
|
|
|
|
|
+ cellValue.length !== 10
|
|
|
|
|
+ ? dayjs(cellValue).format('MMM-DD-YYYY hh:mm A')
|
|
|
|
|
+ : dayjs(cellValue).format('MMM-DD-YYYY')
|
|
|
let gmtOffset = ''
|
|
let gmtOffset = ''
|
|
|
if (row.timezone && row.timezone.length > 3) {
|
|
if (row.timezone && row.timezone.length > 3) {
|
|
|
const timeZoneOffset = dayjs().tz(row.timezone).format('Z')
|
|
const timeZoneOffset = dayjs().tz(row.timezone).format('Z')
|