[Gambas-user] gb.web.feed not stable yet?

T Lee Davidson t.lee.davidson at gmail.com
Sun Jan 6 02:19:48 CET 2019


On 1/5/19 4:03 PM, Tobias Boege wrote:
> The component is marked as
> "Stable" as well.
> 
> If you don't care about timezones, all you have to do is, *almost* like before
> but with an additional dot:
> 
>   $hRssItem.Pub.Date = Now
> 
> When reading an RSS document, you get the date which points to the correct
> point in time via $hRssItem.Pub.Date and the timezone it was originally
> serialised with in $hRssItem.Pub.Zone, which will be used again when you
> write an XML document from it to create the same string you read. If the
> date is not given, it defaults to the moment the date is needed (i.e. the
> XML document is written) and the timezone is the local one by default.
> 
> In short: if you don't want to set special timezones, you never have to
> write "Zone". And if you run older code with the now-stable interface one
> gets an error like "symbol PubDate not found" which hopefully inspires to
> look into the documentation, which I updated in the sources. Hopefully it
> makes its way into the online docs shortly. I don't remember if someone
> has to flip a switch or if there is a cronjob or, meanwhile, git hook
> which does it.
> 
> Regards,
> Tobi

That sounds quite sensible, Tobi, and very workable. Thank you!


___
Lee


More information about the User mailing list