Comments (3)
Apologies found out the reason for invalid date. So please ignore above comment. But then i have different issue now. On all mobile emulators AppointmentPicker is properly taking local timezone when i pass date object ("2020-05-28T11:00:00). But when i access it on IOS device it is converting the time specified for Initialday prop to GMT. So in above case it displays 08:00:00PM. My local timezone is +09:00GMT. Thanks for your help
from react-appointment-picker.
Hi @vickyintokyo, maybe this links could help:
https://www.digitalocean.com/community/tutorials/understanding-date-and-time-in-javascript
https://stackoverflow.com/questions/10087819/convert-date-to-another-timezone-in-javascript
setting your locale that you are expecting could help. Let me know how it works.
from react-appointment-picker.
@roggervalf Thanks for the links. I couldnt get it IOS and desktop working with the one single way of creating date object. So I think i will use the screen size to decide how to create the date object. That will solve the issue for time being. But i was looking for a single way of handling IOS and desktop. I really appreciate your help though. Thanks much.
from react-appointment-picker.
Related Issues (11)
- Is rendering of custom element possible? HOT 1
- Does not contain a default export (imported as 'AppointmentPicker'). HOT 1
- selectedByDefault not working with functional components HOT 6
- Update peer dependencies to support react 18
- Unused `unitTime` prop HOT 1
- İf i change ip picker initial 12 Am
- Change time and date format HOT 1
- How do we set the initial delay in time slots for each day?
- One exclusive appointment HOT 2
- How can i start the schedule earlier than 9AM? HOT 4
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 react-appointment-picker.