[ 
https://issues.apache.org/jira/browse/SHIRO-861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Marwell updated SHIRO-861:
-----------------------------------
    Description: 
The current feed is invalid because we do not deliver time and timezone 
information.

JBake is not very good at handling those information: The generator's locale 
will be taken into account. 'Z' is not recognized for the "jbake-published" tag.

That said, we would need to:update all articles
 * to include a timeUpdate jbake.properties
 * to include `date.format=yyyy-MM-dd'T'hh:mm:ss`
 * Update the feed template to manually insert 'date' and a literal 'T' and 
'time' and a literal 'Z'.
 ** This will result in wrong times, but at least it stays consistent with the 
folder structure. I.e. it would be odd if a blog entry from 2020-06-02 had a 
published date of 2020-06-01T23:00:00+0200.
 * Update the header.tpl as well to include time information.

 

Since JBake uses the old SimpleDateFormatter, which does not  recognize 'V' 
(time zone id), we should write all timestamps in UTC and treat it like UTC 
everywhere.

  was:
The current feed is invalid because we do not deliver time and timezone 
information.

JBake is not very good at handling those information: The generator's locale 
will be taken into account. 'Z' is not recognized for the "jbake-published" tag.

That said, we would need to:update all articles
 * to include a timeUpdate jbake.properties
 * to include `date.format=yyyy-MM-dd'T'hh:mm:ss`
 * Update the feed template to manually insert 'date' and a literal 'T' and 
'time' and a literal 'Z'.
 ** This will result in wrong times, but at least it stays consistent with the 
folder structure. I.e. it would be odd if a blog entry from 2020-06-02 had a 
published date of 2020-06-01T23:00:00+0200.
 * Update the header.tpl as well to include time information.

 


> Update date to date-time
> ------------------------
>
>                 Key: SHIRO-861
>                 URL: https://issues.apache.org/jira/browse/SHIRO-861
>             Project: Shiro
>          Issue Type: Task
>          Components: Web Site
>            Reporter: Benjamin Marwell
>            Priority: Major
>
> The current feed is invalid because we do not deliver time and timezone 
> information.
> JBake is not very good at handling those information: The generator's locale 
> will be taken into account. 'Z' is not recognized for the "jbake-published" 
> tag.
> That said, we would need to:update all articles
>  * to include a timeUpdate jbake.properties
>  * to include `date.format=yyyy-MM-dd'T'hh:mm:ss`
>  * Update the feed template to manually insert 'date' and a literal 'T' and 
> 'time' and a literal 'Z'.
>  ** This will result in wrong times, but at least it stays consistent with 
> the folder structure. I.e. it would be odd if a blog entry from 2020-06-02 
> had a published date of 2020-06-01T23:00:00+0200.
>  * Update the header.tpl as well to include time information.
>  
> Since JBake uses the old SimpleDateFormatter, which does not  recognize 'V' 
> (time zone id), we should write all timestamps in UTC and treat it like UTC 
> everywhere.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to