Then we can use "withMeta" on specific field:
DateTime::make('Date to', 'date_to')->withTimeShort()->locale(config('app.date_locale'))->timeFormat('HH:mm')->withMeta(['userTimeZone' => 'UTC']),
We also noticed that "timezone" is sometimes written as "timeZone" and sometimes as "timezone" maybe it would be good idea to unify that.
Good suggestions, however, lately I've really had little time to work on any of my pet projects and I would greatly appreciate it if you made a pull request with all your suggestions.
Thank you for the great package.
We how ever found one exception in our use case, where we would need to set different Timezone for one specific field.
Although our global Nova.config.userTimezone is set to "sl" we have one specific field where user needs to enter time in UTC.
Inspecting index.vue we found out that it is imposible to set userTimezone for specific field only:
userTimezone: () => Nova.config.userTimezone || moment.tz.guess(),
What we suggest is to change userTimezone to:
Then we can use "withMeta" on specific field:
DateTime::make('Date to', 'date_to')->withTimeShort()->locale(config('app.date_locale'))->timeFormat('HH:mm')->withMeta(['userTimeZone' => 'UTC']),
We also noticed that "timezone" is sometimes written as "timeZone" and sometimes as "timezone" maybe it would be good idea to unify that.