mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 21:54:10 -08: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,
|
||||
showClear: true,
|
||||
showClose: true,
|
||||
timeZone: 'UTC',
|
||||
});
|
||||
if (self.options.end_input) {
|
||||
self.endDate.data('DateTimePicker').date(self.options.end_input);
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
<input
|
||||
class="pull-left date_input input"
|
||||
id="end{{id}}"
|
||||
title="End time of graph"
|
||||
title="End time of graph (UTC)"
|
||||
placeholder="Until"
|
||||
data-format="yyyy-MM-dd"
|
||||
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/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-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/bootstrap3-typeahead/bootstrap3-typeahead.min.js?v={{ buildVersion }}"></script>
|
||||
<script src="{{ pathPrefix }}/static/vendor/fuzzy/fuzzy.js?v={{ buildVersion }}"></script>
|
||||
|
|
Loading…
Reference in a new issue