Handle timezone not found in preferences
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
9d2f86e561
commit
cf37be3660
@ -39,11 +39,12 @@
|
||||
</optgroup>
|
||||
</b-select>
|
||||
</b-field>
|
||||
<em>{{
|
||||
<em v-if="Intl.DateTimeFormat().resolvedOptions().timeZone">{{
|
||||
$t("Timezone detected as {timezone}.", {
|
||||
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
||||
})
|
||||
}}</em>
|
||||
<b-message v-else type="is-danger">{{ $t("Unable to detect timezone.") }}</b-message>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user