Anyone know what is generating TimeZoneConstants.properties, it says it is generated from CLDR version 25 .. but i cant find any thing that generates this gile in gwt code nor in gwt-tools code, was it generated externally?
--You received this message because you are subscribed to the Google Groups "GWT Contributors" group.To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/af65bf54-2dbb-4dc0-9833-1064e21b207a%40googlegroups.com.For more options, visit https://groups.google.com/d/optout.
I messaged Manolo this morning after seeing this, and in gitter where we're talking about this.From some digging in history, an old copy of the properties file referenced pytz2011n, which looks like it might be a specific release of pytz. The commit message Manolo made had a reference to some internal Google python script, which I'm guessing takes that pytz library/database (looks like they also just reference iana) and makes the .properties file, and updates the interface that points at the file.The commits for previous changes went through google code and were imported to git, so I'm not sure we can find much more public commentary.On Fri, Dec 7, 2018, at 8:32 AM, Thomas Broyer wrote:
On Friday, December 7, 2018 at 1:54:09 PM UTC+1, Ahmad Bawaneh wrote:Anyone know what is generating TimeZoneConstants.properties, it says it is generated from CLDR version 25 .. but i cant find any thing that generates this gile in gwt code nor in gwt-tools code, was it generated externally?Have you tried pinging Manolo? He's the last one to have updated the file, maybe he remembers the details. Either him or John Tamplin.
--You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/af65bf54-2dbb-4dc0-9833-1064e21b207a%40googlegroups.com.For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/e48d1ef7-5f72-4802-8ffa-9358e194f523%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAM28XAvAGJWnMP-CrdVRLcoYqtVncd5p%3DfqDoPg6hqHGoM8RvQ%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/af65bf54-2dbb-4dc0-9833-1064e21b207a%40googlegroups.com.For more options, visit https://groups.google.com/d/optout.
--You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/e48d1ef7-5f72-4802-8ffa-9358e194f523%40googlegroups.com.For more options, visit https://groups.google.com/d/optout.
--You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscribe@googlegroups.com.
I looked at the file and the GWT code using it and the format seems pretty clear to me.
europeBerlin = {
// Time Zone Id
"id": "Europe/Berlin",
// List of <hours since epoch, DST offset in minutes> pairs. The DST offset is added on top of std_offset if DST is active. Thus it is 0 when switching to normal time.
"transitions": [89953, 60, 94153, 0, ... ],
// name of time as pair of <short name, full name>. If transitions is empty, size must be 2, otherwise 4. The first pair is normal time, the second pair is DST.
"names": ["CET", "Central European Time", "CEST", "Central European Summer Time"],
// The offset during normal time.
"std_offset": 60
}
I looked at the file and the GWT code using it and the format seems pretty clear to me. Writing a new tool looks pretty simple, we just have to decide which implementation strategy to choose.1.) use JDK java.time package to read the tzdata information packaged with Java.Given that JDK is now released every 6 month, this might also be a nice minimum time frame for possibly automated GWT patch releases with new tzdata.
Otherwise if we want to update tzdata in GWT outside of JDK releases, the process is a little more complex because we first have to generate a tzdb.dat file to update a JDK installation. To generate that file, we would also need to use the source from the JDK version we use to execute the GWT tool that generates the GWT json files because the tzdb.dat file format might change between JDK versions.2.) Use Joda Time and their api to read the tzdata informationYou would need to checkout Joda Time sources, put the new tzdata files into a special package and then build Joda Time. A tool would then depend on that custom build Joda Time and use the Joda Time API to produces the GWT JSON files.
Personally I kind of like option 1.) because we could then align automated GWT releases to JDK releases, e.g. one month after JDK release, and the GWT tool could just use standard JDK API without any dependencies.
Learner Evermore
Is bundling data before 1970 really worth the additional bloat? If you ask me, I wouldn't even go down to 1970.