Skip to content
This repository was archived by the owner on Dec 11, 2022. It is now read-only.

Commit 8dc0fdc

Browse files
authored
Merge pull request #363 from doitintl/fix/OfirCohen/minuteShiftPeriod
fix: minute (m) shift period is casted to month (M) (fixes #306, fixes #343)
2 parents 22b97e8 + b7da104 commit 8dc0fdc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/datasource.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ export class BigQueryDatasource {
3434
public static _getShiftPeriod(strInterval) {
3535
const shift = strInterval.match(/\d+/)[0];
3636
strInterval = strInterval.substr(shift.length, strInterval.length);
37-
if (strInterval === 'm') {
38-
strInterval = 'M';
39-
}
4037

4138
if (strInterval.trim() === 'min') {
4239
strInterval = 'm';
@@ -122,9 +119,6 @@ export class BigQueryDatasource {
122119
query.format = query.format.substr(0, index);
123120
strInterval = res[0];
124121
const shift = res[1];
125-
if (strInterval === 'm') {
126-
strInterval = 'M';
127-
}
128122

129123
if (strInterval === 'min') {
130124
strInterval = 'm';

0 commit comments

Comments
 (0)