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

Is there any way to set the correct date/time/timezone by Java? #94

Closed
562134391 opened this issue Mar 26, 2018 · 1 comment
Closed

Comments

@562134391
Copy link

thanks a lot

@562134391
Copy link
Author

562134391 commented Mar 26, 2018

I have Found it :
TimeManager timeManager = TimeManager.getInstance();
timeManager.setTimeFormat(TimeManager.FORMAT_24);
long timeStamp = TimeUtils.string2Millis("2018-03-26 11:17:22");
timeManager.setTime(timeStamp);
in manifest:

@Fleker Fleker closed this as completed Mar 26, 2018
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

2 participants