Skip to content
Snippets Groups Projects
Commit dd115f2c authored by gmantele's avatar gmantele
Browse files

[UWS] Display by default the time zone in the ISO-8601 dates returned by a

UWS service.
parent c64caf2a
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ package uws;
* You should have received a copy of the GNU Lesser General Public License
* along with UWSLibrary. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2014-2015 - Astronomisches Rechen Institut (ARI)
* Copyright 2014-2016 - Astronomisches Rechen Institut (ARI)
*/
import java.text.DecimalFormat;
......@@ -95,16 +95,17 @@ import java.util.regex.Pattern;
* </p>
*
* @author Gr&eacute;gory Mantelet (CDS;ARI)
* @version 4.2 (12/2015)
* @version 4.2 (01/2016)
* @since 4.1
*/
public class ISO8601Format {
/** Indicate whether any date formatted with this class displays the time zone. */
public static boolean displayTimeZone = false;
public static boolean displayTimeZone = true;
/** Indicate whether any date formatted with this class displays the milliseconds. */
public static boolean displayMilliseconds = false;
/** Indicate the time zone in which the date and time should be formatted (whatever is the time zone of the given date). */
/** Indicate the time zone in which the date and time should be formatted (whatever is the time zone of the given date).
* Note: for the local time zone, this attribute could be set to <code>TimeZone.getDefault().getID()</code>. */
public static String targetTimeZone = "UTC"; // for the local time zone: TimeZone.getDefault().getID();
/** Object to use to format numbers with one digit (ie. 1, 2, 0).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment