mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-25 01:12:30 +00:00
Handle timezone not found in preferences
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
f3566430a3
commit
a40c9fd4b5
1 changed files with 2 additions and 1 deletions
|
@ -39,11 +39,12 @@
|
||||||
</optgroup>
|
</optgroup>
|
||||||
</b-select>
|
</b-select>
|
||||||
</b-field>
|
</b-field>
|
||||||
<em>{{
|
<em v-if="Intl.DateTimeFormat().resolvedOptions().timeZone">{{
|
||||||
$t("Timezone detected as {timezone}.", {
|
$t("Timezone detected as {timezone}.", {
|
||||||
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
||||||
})
|
})
|
||||||
}}</em>
|
}}</em>
|
||||||
|
<b-message v-else type="is-danger">{{ $t("Unable to detect timezone.") }}</b-message>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in a new issue