public interface ZonedDateTimeStrategy
ZoneId into another, based on rules set by the implementing classes.
Within freemarker-java-8 this is used only within the ZonedDateTimeAdapter to
figure out what ZoneId to use when formatting a ZonedDateTime into a String.
zoned_date_time_object.format('yyyy-MM-dd Z')
In the about example the ZonedDateTime object will by default be formatted with the same timezone as found
inside the object. This was not the case in earlier versions of the library, where we would use the system timezone.
But this might not be the wanted default behaviour for everybody. By introducing this interface it is possible
to control what timezone to use as default when formatting a ZonedDateTime and no timezone is specified in
the format method.
| Modifier and Type | Method and Description |
|---|---|
ZoneId |
getZoneId(ZoneId input)
Return the ZoneId to use when formatting a
ZonedDateTime |
ZoneId getZoneId(ZoneId input)
ZonedDateTimeinput - The current ZoneId from a ZonedDateTime object.ZoneId that should be used when formatting the ZonedDateTime object.Copyright © 2020. All rights reserved.