Allow a new setTimezone(string) method on SharpFormDateField
Handle the timezone in DateFormatter
Maybe provide a a way to globally configure ?
class SharpServiceProvider extends SharpAppServiceProvider
{
protected function configureSharp(SharpConfigBuilder $config): void
{
$config
->configureDateFields(
mondayFirstDayOfWeek: true,
defaultTimezone: 'Europe/Paris',
);
}
}
Even allowing closure (might be tricky)?
config->configureDateFields(defaultTimezone: fn () => auth()->user()->timezone);
Allow a new
setTimezone(string)method onSharpFormDateFieldHandle the timezone in DateFormatter
Maybe provide a a way to globally configure ?
Even allowing closure (might be tricky)?