mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 00:53:12 +00:00
#2371 fix to display utc date at datetime picker
This commit is contained in:
parent
3369422327
commit
738a51bea6
File diff suppressed because one or more lines are too long
@ -120,6 +120,7 @@ Prometheus.Graph.prototype.initialize = function() {
|
|||||||
showTodayButton: true,
|
showTodayButton: true,
|
||||||
showClear: true,
|
showClear: true,
|
||||||
showClose: true,
|
showClose: true,
|
||||||
|
timeZone: 'UTC',
|
||||||
});
|
});
|
||||||
if (self.options.end_input) {
|
if (self.options.end_input) {
|
||||||
self.endDate.data('DateTimePicker').date(self.options.end_input);
|
self.endDate.data('DateTimePicker').date(self.options.end_input);
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
<input
|
<input
|
||||||
class="pull-left date_input input"
|
class="pull-left date_input input"
|
||||||
id="end{{id}}"
|
id="end{{id}}"
|
||||||
title="End time of graph"
|
title="End time of graph (UTC)"
|
||||||
placeholder="Until"
|
placeholder="Until"
|
||||||
data-format="yyyy-MM-dd"
|
data-format="yyyy-MM-dd"
|
||||||
type="text"
|
type="text"
|
||||||
|
7
web/ui/static/vendor/moment/moment-timezone-with-data.min.js
vendored
Normal file
7
web/ui/static/vendor/moment/moment-timezone-with-data.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -8,6 +8,7 @@
|
|||||||
<script src="{{ pathPrefix }}/static/vendor/rickshaw/vendor/d3.layout.min.js?v={{ buildVersion }}"></script>
|
<script src="{{ pathPrefix }}/static/vendor/rickshaw/vendor/d3.layout.min.js?v={{ buildVersion }}"></script>
|
||||||
<script src="{{ pathPrefix }}/static/vendor/rickshaw/rickshaw.min.js?v={{ buildVersion }}"></script>
|
<script src="{{ pathPrefix }}/static/vendor/rickshaw/rickshaw.min.js?v={{ buildVersion }}"></script>
|
||||||
<script src="{{ pathPrefix }}/static/vendor/moment/moment.min.js?v={{ buildVersion }}"></script>
|
<script src="{{ pathPrefix }}/static/vendor/moment/moment.min.js?v={{ buildVersion }}"></script>
|
||||||
|
<script src="{{ pathPrefix }}/static/vendor/moment/moment-timezone-with-data.min.js?v={{ buildVersion }}"></script>
|
||||||
<script src="{{ pathPrefix }}/static/vendor/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker.min.js?v={{ buildVersion }}"></script>
|
<script src="{{ pathPrefix }}/static/vendor/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker.min.js?v={{ buildVersion }}"></script>
|
||||||
<script src="{{ pathPrefix }}/static/vendor/bootstrap3-typeahead/bootstrap3-typeahead.min.js?v={{ buildVersion }}"></script>
|
<script src="{{ pathPrefix }}/static/vendor/bootstrap3-typeahead/bootstrap3-typeahead.min.js?v={{ buildVersion }}"></script>
|
||||||
<script src="{{ pathPrefix }}/static/vendor/fuzzy/fuzzy.js?v={{ buildVersion }}"></script>
|
<script src="{{ pathPrefix }}/static/vendor/fuzzy/fuzzy.js?v={{ buildVersion }}"></script>
|
||||||
|
Loading…
Reference in New Issue
Block a user