Podobny problem som nedavno riesil aj ja s jdk1.4.2 a jaxb 1.0.1. Tiez som 
potreboval mat na vystupe datum a cas v tomto formate bez timezone: 
2006-11-08T15:57:41Nakoniec sa mi to podarilo tak, ze som si vytvoril 
nasledujucu triedu:

class NoTimeZoneCal extends Calendar
    {
        public Calendar cal;

        public NoTimeZoneCal(Date time)
        {
            cal = Calendar.getInstance();
            cal.setTime(time);
        }

        public TimeZone getTimeZone()
        {
            return null;
        }

        public int get(int field)
        {
            return cal.get(field);
        }

        protected void computeFields()
        {
        }

        protected void computeTime()
        {
        }

        public int getGreatestMinimum(int field)
        {
            return 0;
        }

        public int getLeastMaximum(int field)
        {
            return 0;
        }

        public int getMaximum(int field)
        {
            return 0;
        }

        public int getMinimum(int field)
        {
            return 0;
        }

        public void add(int field, int amount)
        {
        }

        public void roll(int field, boolean up)
        {
        }
    }

a pouzitie bolo:

trieda_generovana_JAXB.setSINCE( new NoTimeZoneCal(since_typu_date) );

Funguje to vdaka tomu, ze ako timezone vracia NoTimeZoneCal null. Podrobnosti 
su v zdrojakoch jaxb.

Tomas

----- Original Message ----
From: Pavel Hora <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, November 8, 2006 3:31:58 PM
Subject: Re: Zformatovani vypisu Calendar

Nejde to, nejde to :(. Budu konkretni :

DateFormat dateFormat= DateFormat.getDateInstance(DateFormat.SHORT);

trida_generovana_JAXB.setDateTime( dateFormat.getCalendar() ); (JAXB 1.0.4 SUN 
Impl.)

Copa delam spatne?? :((






Odpovedet emailem