Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
icambron committed Apr 21, 2018
1 parent f214267 commit 83b9666
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/datetime.js
Expand Up @@ -186,10 +186,10 @@ function parseDataToDateTime(parsed, parsedZone, opts) {
// helps handle the details
function toTechFormat(dt, format) {
return dt.isValid
? Formatter.create(Locale.create('en-US'), { allowZ: true, forceSimple: true }).formatDateTimeFromString(
dt,
format
)
? Formatter.create(Locale.create('en-US'), {
allowZ: true,
forceSimple: true
}).formatDateTimeFromString(dt, format)
: null;
}

Expand Down
2 changes: 1 addition & 1 deletion src/impl/zoneUtil.js
Expand Up @@ -19,7 +19,7 @@ export function normalizeZone(input, defaultZone) {
} else if (isString(input)) {
const lowered = input.toLowerCase();
if (lowered === 'local') return LocalZone.instance;
else if (lowered === 'utc' || lowered == "gmt") return FixedOffsetZone.utcInstance;
else if (lowered === 'utc' || lowered == 'gmt') return FixedOffsetZone.utcInstance;
else if ((offset = IANAZone.parseGMTOffset(input)) != null) {
// handle Etc/GMT-4, which V8 chokes on
return FixedOffsetZone.instance(offset);
Expand Down

0 comments on commit 83b9666

Please sign in to comment.