Ver Fonte

fix date time bug

samelamin há 1 ano atrás
pai
commit
c56c6074e9
1 ficheiros alterados com 1 adições e 3 exclusões
  1. 1 3
      app/components/chat-list.tsx

+ 1 - 3
app/components/chat-list.tsx

@@ -72,9 +72,7 @@ export function ChatItem(props: {
                 <div className={styles["chat-item-count"]}>
                 <div className={styles["chat-item-count"]}>
                   {Locale.ChatItem.ChatItemCount(props.count)}
                   {Locale.ChatItem.ChatItemCount(props.count)}
                 </div>
                 </div>
-                <div className={styles["chat-item-date"]}>
-                  {new Date(props.time).toLocaleString()}
-                </div>
+                <div className={styles["chat-item-date"]}>{props.time}</div>
               </div>
               </div>
             </>
             </>
           )}
           )}