-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In IE11, picking a date sets the value to the day before #151
Comments
Welcoming a PR, the problem comes from UTC and non-UTC to use different methods. We need to normalise this. See https://github.com/edgycircle/ember-pikaday/blob/master/addon/mixins/pikaday.js#L106 Could be combined with #106 |
This is also not working for me in Safari. |
I don't know how I'd change ember-pikaday to solve this, so I'm not the one to do a PR, but I did solve this in my project by adding a computed field in my model, using that field in my template, and saving that computed field to the actual field when saving the model. Seems like a lot of work to me, but it's not all this add-in's fault; I don't understand why dates are so difficult to do right in my application; may be in part because the database has just a date, and in JavaScript it's all date and time. If I could just use strings, it would be easier. Does this plugin support that? app/models/my-model.js
app/controllers/my-component.js
mixins/dates.js
|
Everything works fine in Chrome, but in IE, as soon as you click a day, or if entering the day manually, say "5/6/2017" and tabbing to the next field, the day becomes the previous day. I'm using the
useUTC=true
prop, which fixed this issue upon saving to the backend in Chrome, but in IE, this is happening as soon as a day is selected, so I don't know what's going on or how to correct it.The text was updated successfully, but these errors were encountered: