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

WIP: Support of different timezones on client & server #44

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

joha78
Copy link

@joha78 joha78 commented Jan 17, 2019

A fix and some additional Converters

private final static Converter CONVERTER = new InstantConverter();

@Override
public boolean supportsType(Class<?> cls) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public boolean supportsType(Class<?> cls) {
public boolean supportsType(final Class<?> cls) {

}

@Override
public Converter getConverterForType(Class<?> cls) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public Converter getConverterForType(Class<?> cls) {
public Converter getConverterForType(final Class<?> cls) {

private static class InstantConverter extends AbstractStringConverter<Instant> {

@Override
public Instant convertFromRemoting(String value) throws ValueConverterException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public Instant convertFromRemoting(String value) throws ValueConverterException {
public Instant convertFromRemoting(final String value) throws ValueConverterException {

}

@Override
public String convertToRemoting(Instant value) throws ValueConverterException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public String convertToRemoting(Instant value) throws ValueConverterException {
public String convertToRemoting(final Instant value) throws ValueConverterException {

private final static Converter CONVERTER = new LocalTimeConverter();

@Override
public boolean supportsType(Class<?> cls) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public boolean supportsType(Class<?> cls) {
public boolean supportsType(final Class<?> cls) {

}

@Override
public Converter getConverterForType(Class<?> cls) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public Converter getConverterForType(Class<?> cls) {
public Converter getConverterForType(final Class<?> cls) {

private static class LocalTimeConverter extends AbstractStringConverter<LocalTime> {

@Override
public LocalTime convertFromRemoting(String value) throws ValueConverterException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public LocalTime convertFromRemoting(String value) throws ValueConverterException {
public LocalTime convertFromRemoting(final String value) throws ValueConverterException {

}

@Override
public String convertToRemoting(LocalTime value) throws ValueConverterException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public String convertToRemoting(LocalTime value) throws ValueConverterException {
public String convertToRemoting(final LocalTime value) throws ValueConverterException {

@hendrikebbers
Copy link
Contributor

@joha78 No time to look at the functionality right now but already checked the code based on our formatting and quality standards. Some minimal changes needed.

@hendrikebbers hendrikebbers changed the title FIX for https://github.com/rico-projects/rico/issues/43 Support of different timezones on client & server Jan 29, 2019
@joha78
Copy link
Author

joha78 commented Jan 29, 2019 via email

@hendrikebbers
Copy link
Contributor

hendrikebbers commented Jan 29, 2019 via email

@hendrikebbers
Copy link
Contributor

Code looks good for me. Will check the functionality the next days.

@hendrikebbers
Copy link
Contributor

@joha78 I added some unit tests in #48
Maybe you can do a review for the PR. Once this is in master we can check your code.

@hendrikebbers hendrikebbers changed the title Support of different timezones on client & server WIP: Support of different timezones on client & server Apr 9, 2019
@sclassen sclassen marked this pull request as draft June 22, 2020 15:29
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

Successfully merging this pull request may close these issues.

None yet

2 participants