mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 09:21:03 +00:00
ICU-2966 Gregorian epoch is 1/1/1 not 1/1/1970 (duh)
X-SVN-Rev: 13450
This commit is contained in:
parent
f58212cfe5
commit
4992f8a2cd
1 changed files with 2 additions and 2 deletions
|
@ -257,8 +257,8 @@ abstract public class TimeZone implements Serializable, Cloneable {
|
|||
dayOfMonth = dayOfYear -
|
||||
GREGORIAN_MONTH_COUNT[month][isLeap?1:0] + 1; // one-based DOM
|
||||
|
||||
// Jan 1 1970 is Thursday
|
||||
int dayOfWeek = (int) ((day + Calendar.THURSDAY) % 7);
|
||||
// Jan 1 1 CE is Monday
|
||||
int dayOfWeek = (int) ((day + Calendar.MONDAY) % 7);
|
||||
if (dayOfWeek < Calendar.SUNDAY) {
|
||||
dayOfWeek += 7;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue