Comments (8)
Can check it again?
What's your alpine version?
from wireui.
Alpine: 3.2.1
I think because the field is cast to a Carbon
I think when you implement carbon type this issue will be resolve
from wireui.
@trippo i got the same bug. how you resolve the issue?
from wireui.
@trippo i got the same bug. how you resolve the issue?
use timezone="UTC" in datetime picker and Carbon::parse($value)->timezone(Config::get('app.timezone'));
from wireui.
@diazsasak @visoftdev pass the user-timezone and the system timezone
<x-datetime-picker :timezone="$timezone" :user-timezone="$userTimezone" ... />
The user timezone is the navigator timezone by default
The System Timezone is UTC by default
from wireui.
I use in blade:
<x-datetime-picker label="Thời gian" timezone="UTC" time-format=24 interval=30 class="my-2" placeholder="Chọn thời gian" wire:model="datetime" />
in component:
$date = Carbon::parse($this->datetime)->timezone(Config::get('app.timezone'));
It worked!
Thanks
from wireui.
I used timezone="UTC" user-timezone="UTC" and carbon with default config ('Europe/Rome')
from wireui.
Why close, this hasn't been resolved. The problem is we have to manually adjust the timezone instead of using what Carbon has already provided.
from wireui.
Related Issues (20)
- Love WireUI, dreaming of some new features :D HOT 3
- icon 'academic-cap' in dark mode shows white background
- V2 Multi Select with wire:model.live does not react on changes HOT 4
- Problem viewing content below the select component HOT 2
- V2 - View [components.outline.x] not found. HOT 2
- V2 laggy and slow on chrome without hardware acceleration
- [V2] Unable to locate some components HOT 2
- Link to Docs is broken on md
- Alpine Expression Error: wireui_modal is not defined Expression: "wireui_modal({ show: false, model: JSON.parse(atob('eyJuYW1lIjoibW9kZWwiLCJkaXJlY3RpdmUiOiJ3aXJlOm1vZGVsLmRlZmVyIiwidmFsdWUiOiJjcmVhdGVNb2RhbCJ9')) })" HOT 2
- toggle element click event hitbox error HOT 1
- Search in async-search is not working on views
- Select component rendered, but dropdown list not showing up HOT 3
- Docs: When I type a phone number into x-phone, I get a bracket HOT 2
- Add custom row and column properties to textarea
- How pass parameters to modal? HOT 5
- Maskable Input : allow regex
- We come back! HOT 1
- Inputs showing touble outlines in Firfox HOT 2
- Datetime picker doesn't get a value
- Default selected value not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wireui.