Skip to content

Commit

Permalink
Fix date issue
Browse files Browse the repository at this point in the history
  • Loading branch information
akasunil committed Oct 30, 2024
1 parent ec881d4 commit ca47581
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
*/
import { __experimentalVStack as VStack } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import {
dateI18n,
format,
getSettings as getDateSettings,
} from '@wordpress/date';
import { dateI18n, getSettings as getDateSettings } from '@wordpress/date';
import { useEntityProp, store as coreStore } from '@wordpress/core-data';
import { useSelect } from '@wordpress/data';
import { store as blockEditorStore } from '@wordpress/block-editor';
Expand Down Expand Up @@ -59,7 +55,7 @@ function CommentAuthorInfo( { avatar, name, date } ) {
{ name ?? currentUserName }
</span>
<time
dateTime={ format( 'h:i A', date ?? currentDate ) }
dateTime={ dateI18n( 'c', date ?? currentDate ) }
className="editor-collab-sidebar-panel__user-time"
>
{ dateI18n( dateTimeFormat, date ?? currentDate ) }
Expand Down

0 comments on commit ca47581

Please sign in to comment.