w3stling / rssreader

A simple Java library for reading RSS and Atom feeds
MIT License
152 stars 25 forks source link

Make it possible to change the default timezone #107

Closed w3stling closed 1 year ago

w3stling commented 1 year ago

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());