Skip to content

Commit

Permalink
again
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskfla committed Mar 8, 2024
1 parent b6695ec commit 4113e10
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import generateUUID from 'bson-objectid';
import moment from 'moment';
import moment from 'moment-timezone';
import RNFS from 'react-native-fs';

import {
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/stripTimezoneFromDate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2017 - 2021 Beyond Essential Systems Pty Ltd
*/

import moment from 'moment';
import moment from 'moment-timezone';

// used to strip the tz suffix so that a date can be added to the database without converting to utc
// we don't want any timezone conversions when working with data_time
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/validation/validatorFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2017 Beyond Essential Systems Pty Ltd
*/

import moment from 'moment';
import moment from 'moment-timezone';
import validator from 'validator';

import { toArray } from '../array';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { periodToMoment } from '@tupaia/tsutils';
import { reduceToDictionary } from '@tupaia/utils';
import moment from 'moment';
import moment from 'moment-timezone';
import { AnalyticsPerPeriodBuilder } from './analyticsPerPeriod';
import { formatLayeredDataElementCode, layerYearOnYear } from '../../../utils/layerYearOnYear';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { DataBuilder } from '/apiV1/dataBuilders/DataBuilder';
import { reduceToDictionary } from '@tupaia/utils';
import { transposeMatrix, mergeTableDataOnKey, sortByColumns } from '/apiV1/utils';

import moment from 'moment';
import moment from 'moment-timezone';
import flatten from 'lodash.flatten';
import keyBy from 'lodash.keyby';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import moment from 'moment';
import moment from 'moment-timezone';
import { aggregateOperationalFacilityValues, getFacilityStatuses } from '/apiV1/utils';

// Example use: % clinics surveyed in last 6 months
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2018 Beyond Essential Systems Pty Ltd
*/

import moment from 'moment';
import moment from 'moment-timezone';
import { DataBuilder } from '/apiV1/dataBuilders/DataBuilder';

const buildResponse = rawData => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2019 Beyond Essential Systems Pty Ltd
*/

import moment from 'moment';
import moment from 'moment-timezone';

import { CustomError } from '@tupaia/utils';
import { TableOfDataValuesBuilder } from './tableOfDataValues';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import moment from 'moment';
import moment from 'moment-timezone';

export const FLIGHT_DATE = 'QMIA028';
const TIMEZONE_SAMOA = 'Pacific/Apia';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Tupaia Config Server
* Copyright (c) 2019 Beyond Essential Systems Pty Ltd
*/
import moment from 'moment';
import moment from 'moment-timezone';
import { DataBuilder } from '/apiV1/dataBuilders/DataBuilder';
import { Flight, getTotalNumPassengers, FLIGHT_DATE } from './flight';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Tupaia Config Server
* Copyright (c) 2019 Beyond Essential Systems Pty Ltd
*/
import moment from 'moment';
import moment from 'moment-timezone';
import { DataBuilder } from '/apiV1/dataBuilders/DataBuilder';
import {
Flight,
Expand Down
2 changes: 1 addition & 1 deletion packages/web-config-server/src/apiV1/utils/getDateRange.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import moment from 'moment';
import moment from 'moment-timezone';

const DEFAULT_RANGE = 2;
/**
Expand Down
4 changes: 2 additions & 2 deletions packages/web-config-server/src/export/exportChartHandler.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import xlsx from 'xlsx';
import moment from 'moment';
import moment from 'moment-timezone';
import fs from 'fs';

import { USER_SESSION_CONFIG } from '/authSession';
Expand Down Expand Up @@ -57,7 +57,7 @@ export const exportChartHandler = async (req, res) => {
true,
{
authorization: authHeader,
}
},
);

const matrixData = {
Expand Down

0 comments on commit 4113e10

Please sign in to comment.