2005-04-20 Sven de Marothy <sven@physto.se>
* java/text/SimpleDateFormat.java: (formatWithAttribute): Pad year before truncating digits. From-SVN: r98444
This commit is contained in:
parent
47af138fc5
commit
ce254988cf
@ -1,3 +1,8 @@
|
||||
2005-04-20 Sven de Marothy <sven@physto.se>
|
||||
|
||||
* java/text/SimpleDateFormat.java:
|
||||
(formatWithAttribute): Pad year before truncating digits.
|
||||
|
||||
2005-04-20 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* gnu/java/net/PlainDatagramSocketImpl.java:
|
||||
|
@ -680,7 +680,7 @@ public class SimpleDateFormat extends DateFormat
|
||||
buffer.setDefaultAttribute (DateFormat.Field.YEAR);
|
||||
if (cf.getSize() == 2)
|
||||
{
|
||||
temp = String.valueOf (calendar.get (Calendar.YEAR));
|
||||
temp = "00"+String.valueOf (calendar.get (Calendar.YEAR));
|
||||
buffer.append (temp.substring (temp.length() - 2));
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user