01: /*******************************************************************************
02: * Copyright (c) 2006 The Regents of the University of California, The MIT Corporation
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: ******************************************************************************/package org.sakaiproject.tool.gradebook.jsf.convertDateTime;
16:
17: import java.util.TimeZone;
18:
19: /**
20: * Simple converter that overrides the spec DateTimeConverter and uses TimeZone.getDefault() as the
21: * base timezone, rather than GMT.
22: *
23: * Author:Louis Majanja <louis@media.berkeley.edu>
24: * Date: Sep 15, 2006
25: * Time: 12:16:10 PM
26: */
27: public class DateTimeConverter extends
28: javax.faces.convert.DateTimeConverter {
29:
30: public static final String CONVERTER_ID = org.sakaiproject.tool.gradebook.jsf.convertDateTime.DateTimeConverter.class
31: .getName();
32:
33: public DateTimeConverter() {
34: setTimeZone(TimeZone.getDefault());
35: }
36:
37: }
|