Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/components/NcDateTimePickerNative/NcDateTimePickerNative.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,16 @@ import { createElementId } from '../../utils/createElementId.ts'
defineOptions({ inheritAttrs: false })

/**
* The date is – like the `Date` object in JavaScript – tied to UTC.
* The selected time zone does not have an influence of the selected time and date value.
* You have to translate the time yourself when you want to factor in time zones.
* The selected value is interpreted in the browser's local timezone.
* The component converts between the native input value and a JavaScript
* `Date` using that local timezone context.
* If your app needs to work in a specific timezone other than the
* browser's local one (for example UTC or an IANA timezone), you
* must convert the value yourself.
*
* For example, serializing the resulting `Date` with `toISOString()`
* will produce the corresponding UTC timestamp.
*
* Pass null to clear the input field.
*/
const modelValue = defineModel<Date | null>({ default: null })
Expand Down