-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: master
Are you sure you want to change the base?
Conversation
...ting-common/src/main/java/dev/rico/internal/remoting/converters/InstantConverterFactory.java
Show resolved
Hide resolved
private final static Converter CONVERTER = new InstantConverter(); | ||
|
||
@Override | ||
public boolean supportsType(Class<?> cls) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public boolean supportsType(Class<?> cls) { | |
public boolean supportsType(final Class<?> cls) { |
} | ||
|
||
@Override | ||
public Converter getConverterForType(Class<?> cls) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public Instant convertFromRemoting(String value) throws ValueConverterException { | |
public Instant convertFromRemoting(final String value) throws ValueConverterException { |
} | ||
|
||
@Override | ||
public String convertToRemoting(Instant value) throws ValueConverterException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public String convertToRemoting(Instant value) throws ValueConverterException { | |
public String convertToRemoting(final Instant value) throws ValueConverterException { |
...ng-common/src/main/java/dev/rico/internal/remoting/converters/LocalTimeConverterFactory.java
Show resolved
Hide resolved
private final static Converter CONVERTER = new LocalTimeConverter(); | ||
|
||
@Override | ||
public boolean supportsType(Class<?> cls) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public boolean supportsType(Class<?> cls) { | |
public boolean supportsType(final Class<?> cls) { |
} | ||
|
||
@Override | ||
public Converter getConverterForType(Class<?> cls) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public LocalTime convertFromRemoting(String value) throws ValueConverterException { | |
public LocalTime convertFromRemoting(final String value) throws ValueConverterException { |
} | ||
|
||
@Override | ||
public String convertToRemoting(LocalTime value) throws ValueConverterException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public String convertToRemoting(LocalTime value) throws ValueConverterException { | |
public String convertToRemoting(final LocalTime value) throws ValueConverterException { |
@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. |
Hi Hendik, ich habe gerade die Änderungen in meinem Fork gemacht und gepushed.
Ich nehme an der Pull request aktualisiert sich von selbst…
Gruß
Jörg
Jörg Hälker
Geschäftsführer
Software Development
sprouts GmbH
Selkamp 12
44287 Dortmund
E: [email protected]
m: +49 176 10358346
w: www.sprouts.aero
AFTN: KNYCXAAA
SITA: DTMSP7X
Sitz der Gesellschaft ist Dortmund
Geschäftsführer: Dominik Schaller, Jörg Hälker
Amtsgericht Dortmund HR B 29108
USt-IdNr. DE311726792
… Am 29.01.2019 um 09:32 schrieb Hendrik Ebbers ***@***.***>:
@joha78 <https://github.com/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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#44 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AI-4-lOg0vz5Rvcnox7IX-agni3oVK0Yks5vIAcIgaJpZM4aGYIo>.
|
Ja, danke :)
Von meinem iPhone gesendet
… Am 29.01.2019 um 17:59 schrieb Jörg Hälker ***@***.***>:
Hi Hendik, ich habe gerade die Änderungen in meinem Fork gemacht und gepushed.
Ich nehme an der Pull request aktualisiert sich von selbst…
Gruß
Jörg
Jörg Hälker
Geschäftsführer
Software Development
sprouts GmbH
Selkamp 12
44287 Dortmund
E: ***@***.***
m: +49 176 10358346
w: www.sprouts.aero
AFTN: KNYCXAAA
SITA: DTMSP7X
Sitz der Gesellschaft ist Dortmund
Geschäftsführer: Dominik Schaller, Jörg Hälker
Amtsgericht Dortmund HR B 29108
USt-IdNr. DE311726792
> Am 29.01.2019 um 09:32 schrieb Hendrik Ebbers ***@***.***>:
>
> @joha78 <https://github.com/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.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub <#44 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AI-4-lOg0vz5Rvcnox7IX-agni3oVK0Yks5vIAcIgaJpZM4aGYIo>.
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Code looks good for me. Will check the functionality the next days. |
A fix and some additional Converters