mirror of
https://github.com/immich-app/immich.git
synced 2024-11-16 02:18:50 -07:00
feat(web): Implemented device last seen date and time with user locale support (#7863)
* Implemented last seen date and time with user locale support * Run Prettier * Prettier and Linter * Updated last seen to be in line with suggestions * Reworked datestamp
This commit is contained in:
parent
72f9295490
commit
412c9bc76d
@ -28,7 +28,6 @@
|
||||
</script>
|
||||
|
||||
<div class="flex w-full flex-row">
|
||||
<!-- TODO: Device Image -->
|
||||
<div class="hidden items-center justify-center pr-2 text-immich-primary dark:text-immich-dark-primary sm:flex">
|
||||
{#if device.deviceOS === 'Android'}
|
||||
<Icon path={mdiAndroid} size="40" />
|
||||
@ -58,6 +57,10 @@
|
||||
<div class="text-sm">
|
||||
<span class="">Last seen</span>
|
||||
<span>{DateTime.fromISO(device.updatedAt, { locale: $locale }).toRelativeCalendar(options)}</span>
|
||||
<span class="text-xs text-gray-500 dark:text-gray-400"> - </span>
|
||||
<span class="text-xs text-gray-500 dark:text-gray-400">
|
||||
{DateTime.fromISO(device.updatedAt, { locale: $locale }).toLocaleString(DateTime.DATETIME_MED)}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{#if !device.current}
|
||||
|
Loading…
Reference in New Issue
Block a user