mirror of
https://github.com/haiwen/seahub.git
synced 2025-10-22 03:16:34 +00:00
display the date details in title (#8271)
This commit is contained in:
@@ -12,7 +12,7 @@ const CTimeFormatter = ({ value, className, children: emptyFormatter, format })
|
||||
return (
|
||||
<div
|
||||
className={classnames('sf-metadata-ui cell-formatter-container ctime-formatter', className)}
|
||||
title={valueFormat}
|
||||
title={dayjs(value).format('dddd, MMMM D, YYYY h:mm:ss A')}
|
||||
>
|
||||
{valueFormat}
|
||||
</div>
|
||||
|
@@ -1,6 +1,7 @@
|
||||
import React, { useMemo } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import dayjs from 'dayjs';
|
||||
import { getDateDisplayString } from '../../../utils/cell/column/date';
|
||||
|
||||
import './index.css';
|
||||
@@ -14,7 +15,7 @@ const DateFormatter = ({ value, format, className, children: emptyFormatter }) =
|
||||
return (
|
||||
<div
|
||||
className={classnames('sf-metadata-ui cell-formatter-container date-formatter', className)}
|
||||
title={displayValue}
|
||||
title={dayjs(value).format('dddd, MMMM D, YYYY h:mm:ss A')}
|
||||
>
|
||||
{displayValue}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user