You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I use version 1.0.7 or 3.2.12
I think that need to update the timezone info of America/Mexico_City.
The America/Mexico_City time zone no longer applies DST.
However, if I create a DtStart object with the Mexico_City timezone, the time sets with DST applied.
To Reproduce
import net.fortuna.ical4j.model.DateTime;
import net.fortuna.ical4j.model.TimeZone;
import net.fortuna.ical4j.model.TimeZoneRegistry;
import net.fortuna.ical4j.model.TimeZoneRegistryFactory;
import net.fortuna.ical4j.model.property.DtStart;
public class Test {
public static void main(String[] args) throws Exception {
long current = System.currentTimeMillis();
DtStart dtStart = new DtStart(new DateTime(current));
TimeZoneRegistry registry = TimeZoneRegistryFactory.getInstance().createRegistry();
TimeZone dtStartTimezone = registry.getTimeZone("America/Mexico_City");
dtStart.setTimeZone(dtStartTimezone);
System.out.println("America/Mexico_City DtStart " + dtStart.toString());
}
}
Expected behavior
The output information should be DTSTART;TZID=America/Mexico_City:20230804T043327 same as GMT-6.
However, the result of executing that code is DTSTART;TZID=America/Mexico_City:20230804T053327
Screenshots
The text was updated successfully, but these errors were encountered:
Hi, ical4j has the option of updating itself at runtime with the latest timezone definitions from tzurl.org. So whilst the definitions in git may be a bit out of date, it is best to check the tzurl.org site to see if that definition is correct.
Describe the bug
I use version 1.0.7 or 3.2.12
I think that need to update the timezone info of America/Mexico_City.
The America/Mexico_City time zone no longer applies DST.
However, if I create a DtStart object with the Mexico_City timezone, the time sets with DST applied.
To Reproduce
Expected behavior
The output information should be
DTSTART;TZID=America/Mexico_City:20230804T043327
same as GMT-6.However, the result of executing that code is
DTSTART;TZID=America/Mexico_City:20230804T053327
Screenshots
The text was updated successfully, but these errors were encountered: