Interface VersionDateFormatter

All Known Implementing Classes:
VersionDateFormatterImpl

public interface VersionDateFormatter
Formats dates for Jira versions (releases), with special handling for date preservation. When enabled via VERSION_PARSE_WITH_DATE_PRESERVATION, uses DateTimeConverter to infer the utc offset of midnight timestamps (JRASERVER-76438).
  • Method Summary

    Modifier and Type
    Method
    Description
    format(Date date)
    Formats a date according to the configured settings.
  • Method Details

    • format

      String format(@Nullable Date date)
      Formats a date according to the configured settings. When date preservation is enabled, ensures midnight timestamps are displayed in their intended date.
      Parameters:
      date - the date to format
      Returns:
      the formatted date string or null if the input date is null