mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-09 01:56:03 +00:00
Deprecate hudson.Util#XS_DATETIME_FORMATTER (#9088)
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
This commit is contained in:
1 parent
c8ee9eaee7
commit
53b271283b
4 files changed
+14
-5
No files matched your search
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user