fixed bug timezone cannot detect in fedora (#2250)

* fixed bug timezone cannot detect in fedora

* update spec build fedora package

* rpm package for fedora 22

* change code follow coffee-script style

* remove fedora binary file
This commit is contained in:
Hon Nguyen 2016-05-20 06:16:00 +07:00 committed by Ben Gotow
parent c5e7a4384b
commit 87ea432295
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ License: GPLv3
URL: https://nylas.com/N1
AutoReqProv: no # Avoid libchromiumcontent.so missing dependency
requires: libgnome-keyring0, gir1.2-gnomekeyring-1.0
requires: libgnome-keyring
%description
<%= description %>

View file

@ -2,7 +2,7 @@ _ = require 'underscore'
fs = require('fs-plus')
path = require('path')
moment = require('moment-timezone')
tz = Intl.DateTimeFormat().resolvedOptions().timeZone
tz = Intl.DateTimeFormat().resolvedOptions().timeZone ? moment.tz.guess()
DefaultResourcePath = null
TaskRegistry = require('../../task-registry').default