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

Make it possible to change the default timezone #107

Merged
merged 1 commit into from
Aug 11, 2023
Merged

Conversation

w3stling
Copy link
Owner

Make it possible to change the default timezone to use if no timezone information exist in the timestamp string. Default UTC is used.

Example pubDate string 2023-08-11T07:17:52 is default treated as a UTC timestamp.

For changing the default timezone to Australia/Sydney:

var items = new RssReader().setDateTimeParser(new DateTime("Australia/Sydney"))
                           .read(URL)
                           .collect(Collectors.toList());

@w3stling w3stling added the enhancement New feature or request label Aug 11, 2023
@w3stling w3stling merged commit b64e184 into master Aug 11, 2023
4 checks passed
@w3stling w3stling deleted the default-timezone branch August 11, 2023 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant