Gillardo / bootstrap-ui-datetime-picker

AngularJs directive to allow use of the bootstrap UI date/time pickers in a single dropdown
MIT License
306 stars 168 forks source link

I get one hour less #164

Open Qernek opened 7 years ago

Qernek commented 7 years ago

Hello I have the same problem as in the example... I think is because GMT/UTC is wrong ... but i dont know how can put it or fix.

https://rawgit.com/Gillardo/bootstrap-ui-datetime-picker/master/example/index.html

screenshot_1

Thx.

skobak commented 7 years ago

Hello, have the same problem. Have somebody some solution or may be it possible to append this GMT/UTC in config?

skobak commented 7 years ago

it can be hard coded in datetimepicker.js, line 383: var newDate = moment(tempDate).subtract(1, "hours").format("YYYY-MM-DD HH:mm:ss");

Gillardo commented 7 years ago

I have updated the code to use modelOptions.timezone... Let me know if this fixes your issue (version 2.5.4)

skobak commented 7 years ago

Thank you very match, try to update code ASAP) On Jan 23, 2017 13:55, "Gillardo" notifications@github.com wrote:

I have updated the code to use modelOptions.timezone... Let me know if this fixes your issue (version 2.5.4)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Gillardo/bootstrap-ui-datetime-picker/issues/164#issuecomment-274456894, or mute the thread https://github.com/notifications/unsubscribe-auth/AF54ykcpypwM7iTW-sJDkYM4g8DsZjFnks5rVIcegaJpZM4LFpSZ .

Gillardo commented 7 years ago

Just released on github and npm