Author: desruisseaux
Date: Thu Aug  8 10:11:23 2013
New Revision: 1511665

URL: http://svn.apache.org/r1511665
Log:
Fix an other timezone problem.

Modified:
    
sis/branches/JDK7/application/sis-console/src/main/java/org/apache/sis/console/SubCommand.java

Modified: 
sis/branches/JDK7/application/sis-console/src/main/java/org/apache/sis/console/SubCommand.java
URL: 
http://svn.apache.org/viewvc/sis/branches/JDK7/application/sis-console/src/main/java/org/apache/sis/console/SubCommand.java?rev=1511665&r1=1511664&r2=1511665&view=diff
==============================================================================
--- 
sis/branches/JDK7/application/sis-console/src/main/java/org/apache/sis/console/SubCommand.java
 [UTF-8] (original)
+++ 
sis/branches/JDK7/application/sis-console/src/main/java/org/apache/sis/console/SubCommand.java
 [UTF-8] Thu Aug  8 10:11:23 2013
@@ -69,7 +69,7 @@ abstract class SubCommand {
 
     /**
      * The locale specified by the {@code "--timezone"} option. If no such 
option was provided,
-     * then this field is left to {@code null}.
+     * then this field is set to the {@linkplain TimeZone#getDefault() default 
timezone}.
      */
     protected final TimeZone timezone;
 
@@ -191,7 +191,7 @@ abstract class SubCommand {
             locale = (value != null) ? Locales.parse(value) : 
Locale.getDefault(Locale.Category.DISPLAY);
 
             value = options.get(option = Option.TIMEZONE);
-            timezone = (value != null) ? TimeZone.getTimeZone(value) : null;
+            timezone = (value != null) ? TimeZone.getTimeZone(value) : 
TimeZone.getDefault();
 
             value = options.get(option = Option.ENCODING);
             explicitEncoding = (value != null);


Reply via email to