File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public static function data($pages, $options = [])
9090 $ options ['modified ' ] = $ items ->first ()->modified ('r ' , 'date ' );
9191 } else {
9292 $ f = $ options ['datefield ' ];
93- $ options ['modified ' ] = $ items ->first ()->{$ f }()->toDate ( ' r ' , ' date ' );
93+ $ options ['modified ' ] = date ( ' r ' , $ items ->first ()->{$ f }()->toTimestamp () );
9494 }
9595
9696 return $ options ;
Original file line number Diff line number Diff line change 88 'url ' => $ item ->url (),
99 'title ' => $ item ->title ()->value (),
1010 'content_html ' => $ item ->{$ textfield }()->kirbytext ()->value (),
11- 'date_published ' => $ item ->{$ datefield }()->toDate ( ' c ' ),
11+ 'date_published ' => date ( ' c ' , $ item ->{$ datefield }()->toTimestamp () ),
1212 'date_modified ' => $ item ->modified ('Y-m-d\TH:i:sP ' , 'date ' ),
1313 ];
1414 }
Original file line number Diff line number Diff line change 1818 <title><?php echo Xml::encode ($ item ->title ()) ?> </title>
1919 <link><?php echo Xml::encode ($ item ->url ()) ?> </link>
2020 <guid><?php echo Xml::encode ($ item ->id ()) ?> </guid>
21- <pubDate><?php echo $ datefield == 'modified ' ? $ item ->modified ('r ' , 'date ' ) : $ item ->{$ datefield }()->toDate ( ' r ' ) ?> </pubDate>
21+ <pubDate><?php echo $ datefield == 'modified ' ? $ item ->modified ('r ' , 'date ' ) : date ( ' r ' , $ item ->{$ datefield }()->toTimestamp () ) ?> </pubDate>
2222 <description><![CDATA[<?php echo $ item ->{$ textfield }()->kirbytext () ?> ]]></description>
2323 </item>
2424 <?php endforeach ?>
You can’t perform that action at this time.
0 commit comments