mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 06:26:16 +00:00
#591 - profile, users and projects
This commit is contained in:
9
resources/js/components/date-time.tsx
Normal file
9
resources/js/components/date-time.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import moment from 'moment';
|
||||
|
||||
export default function DateTime({ date, format = 'YYYY-MM-DD hh:mm:ss', className }: { date: string; format?: string; className?: string }) {
|
||||
return (
|
||||
<time dateTime={date} className={className}>
|
||||
{moment(date).format(format)}
|
||||
</time>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user