Operating JCalendar in a different time zone

280 views Asked by At

I work on a legacy application that makes use of JCalendar. Is it possible to operate JCalendar in a different time zone? The internals of this package seem to assume the local time zone. Our application assumes GMT so we would like dates and times to be handled and rendered in GMT by the com.toedter.calendar.JTextFieldDateEditor and com.toedter.calendar.JSpinnerDateEditor classes.

1

There are 1 answers

0
trashgod On

For expedience, you might set the default TimeZone early in your program.

TimeZone.setDefault(TimeZone.getTimeZone("UTC"));