Skip to content
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

Timepicker decrements Since date on Auto-refresh #337

Closed
amith-za opened this issue Aug 7, 2013 · 5 comments
Closed

Timepicker decrements Since date on Auto-refresh #337

amith-za opened this issue Aug 7, 2013 · 5 comments
Labels
bug Fixes for quality problems that affect the customer experience

Comments

@amith-za
Copy link

amith-za commented Aug 7, 2013

When using the Since option on a timepicker in conjunction with auto-refresh the date is decremented by one day on every refresh.

@rashidkpc
Copy link
Contributor

2wbsj
I'm not seeing this behavior. Can you export your dashboard schema and attach it? I've tested this with both a newly build dashboard and a saved one

@amith-za
Copy link
Author

amith-za commented Aug 9, 2013

Recreated and exported from http://demo.kibana.org/

https://gist.github.com/amith-za/6196254

Seeing this behaviour in Chrome, Firefox and IE10

@olej-a
Copy link

olej-a commented Aug 12, 2013

yes, there is bug, each click on decrements one day.
But you must be in positive UTC :)

@olej-a
Copy link

olej-a commented Aug 12, 2013

There is problem with UTC time correction in function $scope.time_calc = function(), you can't use UTC conversion without time. But there is question why use UTC time correction. If I see timestamp in table, I want set exact range. If there is UTC time correction I need calculate my UTC and then enter correct values for absolute time range.

http://stackoverflow.com/questions/17855842/moment-js-utc-gives-wrong-date

hint>
moment(moment.utc($scope.timepicker.from.date).format('MM/DD/YYYY') + " " + $scope.timepicker.from.time,'MM/DD/YYYY HH:mm:ss');

replace

moment.utc($scope.timepicker.from.date + " " + $scope.timepicker.from.time,'MM/DD/YYYY HH:mm:ss');

@olej-a
Copy link

olej-a commented Aug 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience
Projects
None yet
Development

No branches or pull requests

3 participants