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

V2 add time manipulation #28

Merged
merged 4 commits into from
Apr 20, 2020
Merged

Conversation

jeffyjin
Copy link

Hi Lazee, as per your request, I re-applied the PR to V2 and added test cases and updated README.md. Please let me know your thoughts. Thanks

@jeffyjin jeffyjin changed the base branch from master to v2 April 14, 2020 07:02
@lazee
Copy link
Owner

lazee commented Apr 14, 2020

Wow! Thanks! I will go through it within a couple of days @jeffyjin

Copy link
Owner

@lazee lazee left a comment

Choose a reason for hiding this comment

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

Except from my question about the enhanced wrapper, this looks very good and is beautifully done.

* Freemarker ObjectWrapper that extends the Java8ObjectWrapper with support for time manipulations in all temporal classes in the new java.time api.
* Such time manipulation operations include plusSeconds, plusMinutes, etc.
*/
public class EnhancedJava8ObjectWrapper extends Java8ObjectWrapper {
Copy link
Owner

Choose a reason for hiding this comment

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

Why this Enhanced wrapper ? Couldn't we just add it to the Java8ObjetWrapper ?

Copy link
Author

Choose a reason for hiding this comment

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

Of course. I didn't want to be too intrusive. I actually more prefer to merge the changes into Java8ObjetWrapper. Will modify PR soon

Copy link
Author

Choose a reason for hiding this comment

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

Done. Please review

Copy link
Owner

@lazee lazee Apr 15, 2020

Choose a reason for hiding this comment

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

Thanks! I will look into this and merge it soon. I think v2 should be released within a week or so.

@lazee lazee merged commit 1f6a1d2 into lazee:v2 Apr 20, 2020
lazee added a commit that referenced this pull request Apr 20, 2020
* #16 Suggested support for default timezone id via configuration
* Major rewrite of date timezone strategy and introduced fallbacks
* V2 add time manipulation (#28)

Co-authored-by: Jeff Jin <jeff.jin@reece.com.au>
@lazee
Copy link
Owner

lazee commented Apr 20, 2020

2.0.0 release @jeffyjin. Available tomorrow from central repo. Again, thank you!

@jeffyjin jeffyjin deleted the v2-add-time-manipulation branch April 21, 2020 02:44
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