Skip to content

Commit

Permalink
Merge pull request #388 from fehguy/issue-387
Browse files Browse the repository at this point in the history
set timezone to UTC in examples
  • Loading branch information
gracekarina authored Jun 3, 2021
2 parents 7df4a23 + e6a9a27 commit 7698918
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ public static Example fromProperty(
}
} else if (property instanceof DateSchema) {
DateFormat format = new SimpleDateFormat("yyyy-MM-dd");
format.setTimeZone(TimeZone.getTimeZone("UTC"));
if (example != null) {
String exampleAsString = format.format(example);
output = new StringExample(exampleAsString);
Expand Down

0 comments on commit 7698918

Please sign in to comment.