1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-12 16:28:06 +00:00
bramw_baserow/web-frontend/modules/database/components/field/FieldCreatedOnLastModifiedSubForm.vue
2021-08-11 07:39:58 +00:00

39 lines
936 B
Vue

<template>
<div>
<FieldDateSubForm
:table="table"
:default-values="defaultValues"
></FieldDateSubForm>
<div class="control">
<div class="control__elements">
<div class="filters__value-timezone">{{ values.timezone }}</div>
</div>
</div>
</div>
</template>
<script>
import form from '@baserow/modules/core/mixins/form'
import FieldDateSubForm from '@baserow/modules/database/components/field/FieldDateSubForm'
import fieldSubForm from '@baserow/modules/database/mixins/fieldSubForm'
export default {
name: 'FieldCreatedOnLastModifiedSubForm',
components: { FieldDateSubForm },
mixins: [form, fieldSubForm],
data() {
return {
allowedValues: ['timezone'],
values: {
timezone: this.getCurrentTimezone(),
},
}
},
methods: {
getCurrentTimezone() {
return new Intl.DateTimeFormat().resolvedOptions().timeZone
},
},
}
</script>