-
Notifications
You must be signed in to change notification settings - Fork 529
Closed
Milestone
Description
I created a classifier at 3:13pm EST on Saturday, December 19th and when I invoke listClassifiers()
the Date
objects have the UTC time but the EST timezone. In other words they're showing up as being created five hours in the future.
Here's a snippet of code I used to display the classifier information:
for (Classifier c : nlcService.getClassifiers().getClassifiers()) {
System.out.println(c.getId()+ ", " + c.getName() + ", " + c.getCreated());
}
And the output:
A3DA1Dx15-nlc-532, sports3, Sat Dec 19 20:13:59 EST 2015
3AE103x13-nlc-882, sports2, Wed Dec 02 21:17:58 EST 2015
3AE103x13-nlc-764, sports, Tue Dec 01 22:00:33 EST 2015
A direct rest request shows the creation times formatted a Zulu time, which is correct.
$ curl -u "<USERNAME>":"<PASSWORD>" "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers"
{
"classifiers" : [ {
"classifier_id" : "A3DA1Dx15-nlc-532",
"url" : "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers/A3DA1Dx15-nlc-532",
"name" : "sports3",
"language" : "en",
"created" : "2015-12-19T20:13:59.832Z"
}, {
"classifier_id" : "3AE103x13-nlc-882",
"url" : "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers/3AE103x13-nlc-882",
"name" : "sports2",
"language" : "en",
"created" : "2015-12-02T21:17:58.933Z"
}, {
"classifier_id" : "3AE103x13-nlc-764",
"url" : "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers/3AE103x13-nlc-764",
"name" : "sports",
"language" : "en",
"created" : "2015-12-01T22:00:33.875Z"
} ]
}
Metadata
Metadata
Assignees
Labels
No labels