mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-01 02:41:39 -05:00
Added in the year to the date formats for anchor chart and tooltips for new Dashboard
refs: https://github.com/TryGhost/Team/issues/1531
This commit is contained in:
parent
a972a3246b
commit
0148f1deaa
3 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ import {getSymbol} from 'ghost-admin/utils/currency';
|
|||
import {inject as service} from '@ember/service';
|
||||
import {tracked} from '@glimmer/tracking';
|
||||
|
||||
const DATE_FORMAT = 'D MMM';
|
||||
const DATE_FORMAT = 'D MMM, YYYY';
|
||||
|
||||
const DAYS_OPTIONS = [{
|
||||
name: '7 Days',
|
||||
|
|
|
@ -6,7 +6,7 @@ import {getSymbol} from 'ghost-admin/utils/currency';
|
|||
import {ghPriceAmount} from '../../../../helpers/gh-price-amount';
|
||||
import {inject as service} from '@ember/service';
|
||||
|
||||
const DATE_FORMAT = 'D MMM';
|
||||
const DATE_FORMAT = 'D MMM, YYYY';
|
||||
|
||||
// custom ChartJS draw function
|
||||
Chart.defaults.hoverLine = Chart.defaults.line;
|
||||
|
|
|
@ -5,7 +5,7 @@ import moment from 'moment';
|
|||
import {action} from '@ember/object';
|
||||
import {inject as service} from '@ember/service';
|
||||
|
||||
const DATE_FORMAT = 'D MMM';
|
||||
const DATE_FORMAT = 'D MMM, YYYY';
|
||||
|
||||
// custom ChartJS draw function
|
||||
Chart.defaults.hoverBar = Chart.defaults.bar;
|
||||
|
|
Loading…
Add table
Reference in a new issue