Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i change the timezone of devicehive-java-server deployed by docker? #529

Open
penggle opened this issue Jul 10, 2018 · 2 comments
Open

Comments

@penggle
Copy link

penggle commented Jul 10, 2018

how can i change the timezone of devicehive-java-server deployed by docker?

@penggle
Copy link
Author

penggle commented Jul 10, 2018

by the way,I deployed the devicehive-java-server by docker,I'm sure the host and container timezone is correct!

@penggle
Copy link
Author

penggle commented Jul 10, 2018

i found your com.devicehive.service.time.LocalTimestampService in devicehive-common-service has a problem in method :
public String getDateAsString() {
DATE_FORMAT.setTimeZone(new SimpleTimeZone(SimpleTimeZone.UTC_TIME, "UTC")); // (1)
return DATE_FORMAT.format(getDate());
}

so, this code (1) changes and hard coded the timezone of global const DATA_FORMAT !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant