Browse Source

Merge pull request #636 from ollama-webui/ts-fix

fix: timestamp display
Timothy Jaeryang Baek 1 year ago
parent
commit
3382fd10a6

+ 1 - 1
src/lib/components/chat/Messages/ResponseMessage.svelte

@@ -173,7 +173,7 @@
 
 
 				{#if message.timestamp}
 				{#if message.timestamp}
 					<span class=" invisible group-hover:visible text-gray-400 text-xs font-medium">
 					<span class=" invisible group-hover:visible text-gray-400 text-xs font-medium">
-						{dayjs(message.timestamp * 1000).format('DD/MM/YYYY HH:MM')}
+						{dayjs(message.timestamp * 1000).format('DD/MM/YYYY HH:mm')}
 					</span>
 					</span>
 				{/if}
 				{/if}
 			</Name>
 			</Name>

+ 1 - 1
src/lib/components/chat/Messages/UserMessage.svelte

@@ -66,7 +66,7 @@
 
 
 				{#if message.timestamp}
 				{#if message.timestamp}
 					<span class=" invisible group-hover:visible text-gray-400 text-xs font-medium">
 					<span class=" invisible group-hover:visible text-gray-400 text-xs font-medium">
-						{dayjs(message.timestamp * 1000).format('DD/MM/YYYY HH:MM')}
+						{dayjs(message.timestamp * 1000).format('DD/MM/YYYY HH:mm')}
 					</span>
 					</span>
 				{/if}
 				{/if}
 			</Name>
 			</Name>