Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vollt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sonia Zorba
vollt
Commits
dd115f2c
Commit
dd115f2c
authored
9 years ago
by
gmantele
Browse files
Options
Downloads
Patches
Plain Diff
[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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/uws/ISO8601Format.java
+5
-4
5 additions, 4 deletions
src/uws/ISO8601Format.java
with
5 additions
and
4 deletions
src/uws/ISO8601Format.java
+
5
−
4
View file @
dd115f2c
...
...
@@ -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-201
5
- Astronomisches Rechen Institut (ARI)
* Copyright 2014-201
6
- Astronomisches Rechen Institut (ARI)
*/
import
java.text.DecimalFormat
;
...
...
@@ -95,16 +95,17 @@ import java.util.regex.Pattern;
* </p>
*
* @author Grégory Mantelet (CDS;ARI)
* @version 4.2 (1
2
/201
5
)
* @version 4.2 (
0
1/201
6
)
* @since 4.1
*/
public
class
ISO8601Format
{
/** Indicate whether any date formatted with this class displays the time zone. */
public
static
boolean
displayTimeZone
=
fals
e
;
public
static
boolean
displayTimeZone
=
tru
e
;
/** 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).
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment