1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-23 16:33:28 +00:00

Handle timezone not found in preferences

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-10-21 09:04:29 +02:00
parent f3566430a3
commit a40c9fd4b5
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -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>