From d49bae4790286c37e040d3b8f89549a3737e1c7a Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 16 Jun 2017 07:59:41 -0700 Subject: [PATCH] removed jstimezonedetect --- package.json | 2 -- src/utils/DateUtils.js | 6 ------ 2 files changed, 8 deletions(-) diff --git a/package.json b/package.json index 2d9de4c03..463a150b4 100644 --- a/package.json +++ b/package.json @@ -20,9 +20,7 @@ "dependencies": { "autosize": "^3.0.17", "classnames": "^2.2.5", - "jstimezonedetect": "^1.0.6", "lodash": "^4.15.0", - "moment": "^2.14.1", "moment-timezone": "^0.5.13", "react": "^0.14.8", "react-custom-scrollbars": "^4.0.0", diff --git a/src/utils/DateUtils.js b/src/utils/DateUtils.js index 4c5f8ebd7..ad5dc5b93 100644 --- a/src/utils/DateUtils.js +++ b/src/utils/DateUtils.js @@ -1,16 +1,10 @@ 'use strict'; import _ from 'lodash'; -import jstz from 'jstimezonedetect'; import moment from 'moment-timezone'; export default class DateUtils { - static getDetectedTimeZone() { - let tz = jstz.determine().name(); - return tz; - } - static formatWithTz(data, userTimeZoneId) { let timeZoneId = userTimeZoneId || DateUtils.getDetectedTimeZone();