diff --git a/angular-timezone-selector.js b/angular-timezone-selector.js index 5f52b89..0381f98 100644 --- a/angular-timezone-selector.js +++ b/angular-timezone-selector.js @@ -104,8 +104,8 @@ angular.module('angular-timezone-selector', []) // the format used in timezoneFactory var extraTZs = _.filter(timezones, { 'id': jstz.determine().name() }) } else { - var localUTC = 'UTC' + moment().format('Z'); - extraTZs = _.filter(timezones, {'offset': localUTC}); + var localUTC = 'UTC' + moment().format('Z') + extraTZs = _.filter(timezones, {'offset': localUTC}) } data.splice(0, 0, { diff --git a/package.json b/package.json index 8f87d91..1c87b0a 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "homepage": "https://github.com/mishguruorg/angular-timezone-selector", "devDependencies": { "csv": "^0.4.1", - "csv-load-sync": "0.0.3", + "csv-load-sync": "^1.0.0", "grunt": "latest", "grunt-contrib-uglify": "latest", "grunt-string-replace": "~1.0.0", @@ -32,7 +32,6 @@ "uglify-js": "latest" }, "dependencies": { - "csv-load-sync": "^1.0.0", "grunt-autoprefixer": "^3.0.3", "grunt-contrib-copy": "^0.8.0", "grunt-contrib-cssmin": "^0.12.3",