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

Track History only offers UTC #324

Open
tomcha34 opened this issue Apr 3, 2024 · 0 comments
Open

Track History only offers UTC #324

tomcha34 opened this issue Apr 3, 2024 · 0 comments

Comments

@tomcha34
Copy link

tomcha34 commented Apr 3, 2024

Currently, our track history time is hardcoded to UTC, which may not be convenient for all users due to time zone differences. Could we enhance this feature to allow users to select their preferred time zone? This would greatly improve usability and ensure that users across different regions can view track history in a time format that is most relevant to them. Please let me know if any additional details are needed to implement this feature.

public void setStartDateTime(long millis) {
Date d = new Date(millis);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd",
LocaleUtil.getCurrent());
sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
_startDate.setText(sdf.format(d));
sdf = new SimpleDateFormat("HH:mm:ss'Z'", LocaleUtil.getCurrent());
sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
_startTime.setText(sdf.format(d));
}

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