bootstrap-ui-datetime-picker icon indicating copy to clipboard operation
bootstrap-ui-datetime-picker copied to clipboard

I get one hour less

Open Qernek opened this issue 8 years ago • 5 comments
trafficstars

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.

Qernek avatar Dec 06 '16 17:12 Qernek

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

skobak avatar Dec 10 '16 13:12 skobak

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

skobak avatar Jan 19 '17 17:01 skobak

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

Gillardo avatar Jan 23 '17 10:01 Gillardo

Thank you very match, try to update code ASAP) On Jan 23, 2017 13:55, "Gillardo" [email protected] 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 .

skobak avatar Jan 23 '17 10:01 skobak

Just released on github and npm

Gillardo avatar Jan 23 '17 11:01 Gillardo