Network Time
{#await getNTPStatus()} {:then nothing}
Status
{ntpStatus.status === 1 ? 'Active' : 'Inactive'}
NTP Server
{ntpStatus.server}
Local Time
{new Intl.DateTimeFormat('en-GB', { dateStyle: 'long', timeStyle: 'long' }).format(new Date(ntpStatus.local_time))}
UTC Time
{new Intl.DateTimeFormat('en-GB', { dateStyle: 'long', timeStyle: 'long', timeZone: 'UTC' }).format(new Date(ntpStatus.utc_time))}
Uptime
{convertSeconds(ntpStatus.uptime)}
{/await}
{#if !$page.data.features.security || $user.admin} Change NTP Settings
{/if}