'ending_3.year' => ts('Last 3 years including today'),
'ending_2.year' => ts('Last 2 years including today'),
'ending.year' => ts('Last 12 months including today'),
- 'ending.quarter' => ts('Last 3 months including today'),
+ 'ending.quarter' => ts('Last 90 days including today'),
'ending.month' => ts('Last 30 days including today'),
'ending.week' => ts('Last 7 days including today'),
'previous.day' => ts('Yesterday'),
'this.day' => ts('Today'),
'starting.day' => ts('Tomorrow'),
'starting.week' => ts('Next 7 days including today'),
- 'starting.month' => ts('Next month including today'),
+ 'starting.month' => ts('Next 30 days including today'),
+ 'starting.quarter' => ts('Next 90 days including today'),
'starting.year' => ts('Next 12 months including today'),
'less.year' => ts('To end of current calendar year'),
'less.quarter' => ts('To end of current quarter'),
$to['Y'] = $now['year'];
$to['H'] = 23;
$to['i'] = $to['s'] = 59;
- $from = self::intervalAdd('month', -3, $to);
+ $from = self::intervalAdd('day', -90, $to);
$from = self::intervalAdd('second', 1, $from);
break;
$to['Y'] = $from['Y'] = $now['year'] - $subtractYear;
$to['d'] = date('t', mktime(0, 0, 0, $to['M'], 1, $to['Y']));
break;
+
+ case 'starting':
+ $from['d'] = $now['mday'];
+ $from['M'] = $now['mon'];
+ $from['Y'] = $now['year'];
+ $from['H'] = 00;
+ $from['i'] = $to['s'] = 00;
+ $to = self::intervalAdd('day', 90, $from);
+ $to = self::intervalAdd('second', -1, $to);
+ break;
}
break;
break;
case 'starting':
- $from['d'] = $now['mday'];
- $from['M'] = $now['mon'];
- $from['Y'] = $now['year'];
- $from['H'] = 00;
- $from['i'] = $to['s'] = 00;
- $to = self::intervalAdd('month', 1, $from);
- $to = self::intervalAdd('second', -1, $to);
+ $from['d'] = $now['mday'];
+ $from['M'] = $now['mon'];
+ $from['Y'] = $now['year'];
+ $from['H'] = 00;
+ $from['i'] = $to['s'] = 00;
+ $to = self::intervalAdd('day', 30, $from);
+ $to = self::intervalAdd('second', -1, $to);
break;
}
break;