diff options
author | Bryce McKinlay <bryce@waitaki.otago.ac.nz> | 2001-07-30 00:41:31 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2001-07-30 01:41:31 +0100 |
commit | 6941ff95592f959bd1f516acd5d280d6e3b8a8be (patch) | |
tree | cf37cc79c892e895291757650c8fe7e8d8a68578 /libjava | |
parent | 09b822537f65ad55e817f388e9edfb72df481160 (diff) | |
download | gcc-6941ff95592f959bd1f516acd5d280d6e3b8a8be.zip gcc-6941ff95592f959bd1f516acd5d280d6e3b8a8be.tar.gz gcc-6941ff95592f959bd1f516acd5d280d6e3b8a8be.tar.bz2 |
GregorianCalendar.java (GregorianCalendar): Call setTimeInMillis() to set the default/current time.
* java/util/GregorianCalendar.java (GregorianCalendar): Call
setTimeInMillis() to set the default/current time.
From-SVN: r44467
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/util/GregorianCalendar.java | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 0f924a7..aabca8d 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz> + + * java/util/GregorianCalendar.java (GregorianCalendar): Call + setTimeInMillis() to set the default/current time. + 2001-07-29 Mark Wielaard <mark@klomp.org> * HACKING: add description on updating namespace diff --git a/libjava/java/util/GregorianCalendar.java b/libjava/java/util/GregorianCalendar.java index 2c68907..bcdd860 100644 --- a/libjava/java/util/GregorianCalendar.java +++ b/libjava/java/util/GregorianCalendar.java @@ -111,9 +111,7 @@ public class GregorianCalendar extends Calendar super(zone, locale); ResourceBundle rb = ResourceBundle.getBundle(bundleName, locale); gregorianCutover = ((Date) rb.getObject("gregorianCutOver")).getTime(); - time = System.currentTimeMillis(); - isTimeSet = true; - areFieldsSet = false; + setTimeInMillis(System.currentTimeMillis()); } /** |