Просмотр исходного кода

Merge pull request #13845 from overleaf/ii-rp-incorrect-date

[web] Fix date issues in review panel

GitOrigin-RevId: 447185cc97aae5a2e6d8944be578fa103b39325b
ilkin-overleaf 3 лет назад
Родитель
Сommit
66f540c6eb

+ 1 - 1
services/web/frontend/js/features/source-editor/components/review-panel/entries/aggregate-change-entry.tsx

@@ -147,7 +147,7 @@ function AggregateChangeEntry({
               )}
             </div>
             <div className="rp-entry-metadata">
-              {formatTime(entry.metadata.ts, 'MMM d, y h:mm a')}
+              {formatTime(entry.metadata.ts, 'MMM D, Y h:mm A')}
               &nbsp;&bull;&nbsp;
               {user && (
                 <span

+ 1 - 1
services/web/frontend/js/features/source-editor/components/review-panel/entries/change-entry.tsx

@@ -144,7 +144,7 @@ function ChangeEntry({
               </span>
             </div>
             <div className="rp-entry-metadata">
-              {formatTime(entry.metadata.ts, 'MMM d, y h:mm a')}
+              {formatTime(entry.metadata.ts, 'MMM D, Y h:mm A')}
               &nbsp;&bull;&nbsp;
               {user && (
                 <span

+ 1 - 1
services/web/frontend/js/features/source-editor/components/review-panel/entries/comment.tsx

@@ -88,7 +88,7 @@ function Comment({ thread, threadId, comment }: CommentProps) {
       </p>
       {!editing && (
         <div className="rp-entry-metadata">
-          {!deleting && formatTime(comment.timestamp, 'MMM d, y h:mm a')}
+          {!deleting && formatTime(comment.timestamp, 'MMM D, Y h:mm A')}
           {comment.user.isSelf && !deleting && (
             <span className="rp-comment-actions">
               &nbsp;&bull;&nbsp;

+ 2 - 2
services/web/frontend/js/features/source-editor/components/review-panel/entries/resolved-comment-entry.tsx

@@ -88,7 +88,7 @@ function ResolvedCommentEntry({
                 </Linkify>
               </p>
               <div className="rp-entry-metadata">
-                {formatTime(comment.timestamp, 'MMM d, y h:mm a')}
+                {formatTime(comment.timestamp, 'MMM D, Y h:mm A')}
               </div>
             </div>
           )
@@ -104,7 +104,7 @@ function ResolvedCommentEntry({
             {t('mark_as_resolved')}.
           </p>
           <div className="rp-entry-metadata">
-            {formatTime(thread.resolved_at, 'MMM d, y h:mm a')}
+            {formatTime(thread.resolved_at, 'MMM D, Y h:mm A')}
           </div>
         </div>
       </div>