Only use Month and Year for photo date

This commit is contained in:
2022-01-31 19:04:45 +01:00
parent 9e3a3be60b
commit 1344f25092
2 changed files with 2 additions and 7 deletions

View File

@@ -10,7 +10,6 @@
import { throttle } from '$utils/functions'
import { swipe } from '$utils/interactions/swipe'
import dayjs from 'dayjs'
import advancedFormat from 'dayjs/plugin/advancedFormat.js'
import anime from 'animejs'
import type { AnimeTimelineInstance } from 'animejs'
// Components
@@ -29,8 +28,6 @@
export let limit: number
export let offset: number
dayjs.extend(advancedFormat)
enum directions { PREV, NEXT }
let innerWidth: number
@@ -377,7 +374,7 @@
{/if}
</span>
</a>
<span class="sep">&middot;</span> <time datetime={dayjs(currentPhoto.date_taken).format('YYYY-MM-DD')}>{dayjs(currentPhoto.date_taken).format('MMMM, Do YYYY')}</time>
<span class="sep">&middot;</span> <time datetime={dayjs(currentPhoto.date_taken).format('YYYY-MM-DD')}>{dayjs(currentPhoto.date_taken).format('MMMM YYYY')}</time>
</div>
</div>
</div>