Skip to content

Commit

Permalink
Make rollover time format configurable via the option `rollover_time_…
Browse files Browse the repository at this point in the history
…format`
  • Loading branch information
wlach committed Nov 7, 2017
1 parent 3a90285 commit f915786
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/misc/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ function mg_jquery_exists() {
}

function mg_get_rollover_time_format(args) {
// if a rollover time format is defined, use that
if (args.rollover_time_format) {
return MG.time_format(args.utc_time, args.rollover_time_format);
}

switch (args.processed.x_time_frame) {
case 'millis':
return MG.time_format(args.utc_time, '%b %e, %Y %H:%M:%S.%L');
Expand Down

0 comments on commit f915786

Please sign in to comment.