diff --git a/src/changes/changes.xml b/src/changes/changes.xml index e7739275d..d37228352 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -58,6 +58,7 @@ The type attribute can be add,update,fix,remove. Add CalendarUtils.getInstance(). Add syntax for optional tokens to DurationFormatUtils #1062. Add ArrayFill. + Add FastDateParser.TimeZoneStrategy.TzInfo.toString(). Bump commons-parent from 58 to 59. diff --git a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java index e5376a1d8..2074ddbed 100644 --- a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java +++ b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java @@ -896,6 +896,11 @@ public class FastDateParser implements DateParser, Serializable { zone = tz; dstOffset = useDst ? tz.getDSTSavings() : 0; } + + @Override + public String toString() { + return "TzInfo [zone=" + zone + ", dstOffset=" + dstOffset + "]"; + } } /**