Skip to content

Commit

Permalink
Merge pull request #244 from iLib-js/development
Browse files Browse the repository at this point in the history
Merge to master in prep for next release
  • Loading branch information
ehoogerbeets authored Apr 9, 2020
2 parents 2b3a05a + 96f4043 commit 04f6387
Show file tree
Hide file tree
Showing 2,545 changed files with 418,893 additions and 242,987 deletions.
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

version=14.5.0
version=14.6.0
20 changes: 20 additions & 0 deletions docs/ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
Release Notes for Version 14
============================

Build 009
-------
Published as version 14.6.0

New Features:
* Updated all locale data to CLDR 36 and Unicode Character Database 13.0
* The methods of the TimeZone object that take dates as parameters can now
take any date types, such as a unix time number, an intrinsic Javascript
Date object, or an ilib IDate instance. Previously, they only took
IDate instances.
* updated methods are: getDisplayName, getOffset, getOffsetStr,
getOffsetMillis, and inDaylightTime

Bug Fixes:
* Time zones in Indiana, Kentucky, North Dakota, and Argentina were missing.
Fixed the zone info compiler to generate the json data for these missing time
zones properly.
* Changed a default length style to `medium` in List Formatting.


Build 008
-------
Published as version 14.5.0
Expand Down
12 changes: 8 additions & 4 deletions java/src/com/ilib/tools/zic/JsonZoneWriter.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* JsonZoneWriter.java -
*
* Copyright © 2014 JEDLSoft, All Rights Reserved.
* Copyright © 2014, 2020 JEDLSoft, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -46,6 +46,11 @@ public JsonZoneWriter(File file)
this.outputDir = file;
}

/**
* @param zoneName
* @param json
* @throws Exception
*/
public void writeZone(String zoneName, JSONObject json)
throws Exception
{
Expand All @@ -54,9 +59,8 @@ public void writeZone(String zoneName, JSONObject json)
return;
}
Writer writer = null;
String[] parts = zoneName.split("/");
File dir = parts.length > 1 ? new File(outputDir, parts[0]) : outputDir;
File file = new File(dir, (parts.length > 1 ? parts[1] : zoneName) + ".json");
File file = new File(outputDir, zoneName + ".json");
File dir = file.getParentFile();
try {
if ( !dir.exists() ) {
logger.trace("Making new dir " + dir.getPath());
Expand Down
11 changes: 7 additions & 4 deletions java/src/com/ilib/tools/zic/Offset.java
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public JSONObject getJson(boolean currentOnly)
Calendar cal = Calendar.getInstance();
int year = cal.get(Calendar.YEAR);
rulesList = rules.getRules();
Rule startRule = null, endRule = null;
Rule startRule = null, endRule = null, lastRule = rulesList.get(rulesList.size()-1);;
for ( i = 0; i < rulesList.size(); i++ ) {
rule = rulesList.get(i);
// check year-1 against the end year to take care of the
Expand Down Expand Up @@ -278,13 +278,16 @@ public JSONObject getJson(boolean currentOnly)
}
json.put("e", wallTime.getJson(currentOnly));
}

if ( startRule == null && endRule == null ) {

if (format.trim().equals("%s")) {
json.put("f", lastRule.getCharacter());
} else if ( startRule == null && endRule == null ) {
// no DST in this time zone, so fix up bogus abbreviations that include the %s when it shouldn't
// replace the %s with S for "Standard time"
json.put("f", format.replace("%s", "S"));
}
}

return json;
}
}
6 changes: 3 additions & 3 deletions js/build.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
build.xml - build the javascript parts
Copyright © 2012-2019, JEDLSoft
Copyright © 2012-2020, JEDLSoft
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand Down Expand Up @@ -51,8 +51,8 @@ limitations under the License.
<property name="nm.bin" value="${build.base}/../node_modules/.bin"/>
<property name="jar.ilib" value="ilib.jar"/>
<property name="locales.default" value="en-AU,en-CA,en-GB,en-IN,en-NG,en-PH,en-PK,en-SG,en-US,en-ZA,de-DE,fr-CA,fr-FR,es-AR,es-ES,es-MX,id-ID,it-IT,ja-JP,ko-KR,pt-BR,ru-RU,tr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TH,tr-TR,tr-CY,uk-UA,ur-IN,ur-PK,uz-AF,uz-Arab-AF,uz-Cyrl-UZ,uz-Latn-UZ,vai-Latn-LR,vi-VN,zh-Hans-CN,zh-Hans-MO,zh-Hans-MY,zh-Hans-SG,zh-Hant-HK,zh-Hant-TW,zh-Hant-US,zu-ZA,zxx-Cyrl-XX,zxx-Hans-XX,zxx-Hebr-XX,zxx-XX"/>
<property name="keep.these.comments" value="/(\!data|\!loadLocaleData|\!defineLocaleData|\!macro|eslint-)/"/>

<!-- =================================================================== -->
Expand Down
Loading

0 comments on commit 04f6387

Please sign in to comment.