We're updating the issue view to help you get more done. 

DateFormat.format(Calendar) returns unexpected result when the calendar type does not match the one used by the DateFormat instance

Description

Deleted Component: formatting

It seem to me that some locale data may be missing.
The behavior can be observe as below.

Code snippet:
DateFormat df = DateFormat.getPatternInstance("EEEEdMMMMGyyyy", new ULocale("th_TH"));
System.out.println(df.format(new GregorianCalendar(2008, 1, 29)));

Expected result:
วันศุกร์ที่ 29 กุมภาพันธ์ ค.ศ. 2008
Actual result:
วันศุกร์ที่ 29 กุมภาพันธ์ 2008

Environment

Status

Assignee

Yoshito Umaoka

Reporter

TracBot

Labels

Time Needed

Days

tracCc

natta@a42315a99ba9b677,suwits@a42315a99ba9b677,vichaiw@a42315a99ba9b677

tracCreated

Jul 04, 2008, 4:49 AM

tracOwner

yoshito

tracProject

all

tracReporter

natta@a42315a99ba9b677

tracResolution

fixed

tracReviewer

srl

tracStatus

closed

tracWeeks

0.4

Fix versions

Priority

medium