Deprecate hudson.Util#XS_DATETIME_FORMATTER (#9088)

Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
This commit is contained in:
Basil CrowandMark Waite authored and GitHub committed 2024-03-30 07:29:29 -06:00
1 parent c8ee9eaee7
commit 53b271283b
4 files changed
+14 -5

No files matched your search

+2 -2
View File
@@ -221,12 +221,12 @@ public class Functions {
}
public static String xsDate(Calendar cal) {
return Util.XS_DATETIME_FORMATTER.format(cal.getTime());
return Util.XS_DATETIME_FORMATTER2.format(cal.toInstant());
}
@Restricted(NoExternalUse.class)
public static String iso8601DateTime(Date date) {
return Util.XS_DATETIME_FORMATTER.format(date);
return Util.XS_DATETIME_FORMATTER2.format(date.toInstant());
}
/**