diff options
author | Gary Benson <gbenson@redhat.com> | 2007-04-13 10:48:41 +0000 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2007-04-13 10:48:41 +0000 |
commit | 304e22de20622b7ac3bedbc1cc90e4bb653aad5d (patch) | |
tree | 9e324e8f800cb7d119b226d24cd7676668172bce | |
parent | c9b3a81eb879f1bcc2ca915e7108009e8d10b3f4 (diff) | |
download | classpath-304e22de20622b7ac3bedbc1cc90e4bb653aad5d.tar.gz |
2007-04-13 Gary Benson <gbenson@redhat.com>
* java/util/Calendar.java
(setTimeZone): Don't recalculate anything, just invalidate
the fields.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | java/util/Calendar.java | 3 |
2 files changed, 7 insertions, 2 deletions
@@ -1,5 +1,11 @@ 2007-04-13 Gary Benson <gbenson@redhat.com> + * java/util/Calendar.java + (setTimeZone): Don't recalculate anything, just invalidate + the fields. + +2007-04-13 Gary Benson <gbenson@redhat.com> + * java/util/GregorianCalendar.java (setDefaultFields): Change DAY_OF_WEEK_IN_MONTH default, and add some comments. diff --git a/java/util/Calendar.java b/java/util/Calendar.java index 5a2b91519..3e4fd8a34 100644 --- a/java/util/Calendar.java +++ b/java/util/Calendar.java @@ -1088,8 +1088,7 @@ public abstract class Calendar public void setTimeZone(TimeZone zone) { this.zone = zone; - computeTime(); - computeFields(); + areFieldsSet = false; } /** |