Coder Social home page Coder Social logo

Comments (3)

vickyintokyo avatar vickyintokyo commented on June 30, 2024

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.

roggervalf avatar roggervalf commented on June 30, 2024

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.

vickyintokyo avatar vickyintokyo commented on June 30, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.