Skip to content

Commit

Permalink
removed jstimezonedetect
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrewer1689 committed Jun 16, 2017
1 parent 8094b67 commit d49bae4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 0 additions & 6 deletions src/utils/DateUtils.js
Original file line number Diff line number Diff line change
@@ -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();

Expand Down

0 comments on commit d49bae4

Please sign in to comment.