Forums / Setup & design / published dates all in the 70's

published dates all in the 70's

Author Message

paul harvey

Sunday 08 February 2004 4:55:22 pm

all my published dates for lin view show 01/01/1970 in linux and windows. I have seen post with the same promblem but no answer. the templates are as follows: the code is pretty much ripped from other examples

full_view_news_folder.tpl
----------------------------
<form method="post"
action={"content/action/"|ezurl}>
<input class="button"
type="submit"
name="NewButton"
value="Submit News" />
<input type="hidden"
name="ClassID"
value="16" />
<input type="hidden"
name="NodeID"
value="{$node.node_id}" />
</form>
<div><p>The news on this site is moderated. So new posts will not show untill approved</p></div>

<div align="center" class="siteName"><strong>Latest news</strong></div>
<br>
{* Grab some of the content of the node that is being viewed. *}
{let children=fetch( content, list, hash( parent_node_id, $node.node_id,
sort_by,array(published,false()), $node.sort_array,
limit, 7,
class_filter_type, include,
class_filter_array, array(
'news') ) )}
{* LOOP: For each child of the node... *}
{section name=Child loop=$children}
{* Display the content of the child using a line-view template. *}
{node_view_gui view=line content_node=$Child:item}
<br>
<!-- needs a divider -->
{* End of loop. *}
{/section}
{* End of namespace. *}
{/let}
<br>
<div class="center">
<a href={"/news/archive"|ezurl}>
Click here to access the news archive...
</a>
</div>

line_view_news.tpl
-------------------

<table width="100%" cellspacing="0">
<tr>
<td align="center"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td class="bgdark"><span class="headline_link">{attribute_view_gui attribute=$node.object.data_map.title} </span></td>
<td class="bgdark"> </td>
</tr>
<tr >
<td colspan="2" valign="top" class="bglight"><span class="story">{attribute_view_gui attribute=$node.object.data_map.intro} </span><a href={$node.url_alias|ezurl}> </a></td>
</tr>
<tr >
<td class="bgdark">Published {* Display the date the article was published. *} {$:item.object.published|l10n(shortdate)} </td>
<td width="100" align="right" bgcolor="#f0f0f0"><a href={$node.url_alias|ezurl}>read more.</a></td>
</tr>
</table></td>
</tr>
</table>
<p> </p>

full_view_news.tpl
-------------------
{* Display the headline, use huge characters. *}
<div class="headline">
{attribute_view_gui attribute=$node.object.data_map.title}
</div>
{* Display the thumbnail image, right-justified. *}
<div class="imageright">
{attribute_view_gui attribute=$node.object.data_map.thumbnail}
</div>
{* Display the intro-text using bold characters. *}
{attribute_view_gui attribute=$node.object.data_map.intro}
{* Display the actual body/content of the article. *}
{attribute_view_gui attribute=$node.object.data_map.body}

if you can help it would be much appreciated.

thanks
paul

Kåre Køhler Høvik

Sunday 08 February 2004 11:40:01 pm

Are the dates you're trying to show from objects in the news package, or objects you have created your self ?
What locale settings are you using ?

--
Kåre Høvik

Kåre Høvik

paul harvey

Monday 09 February 2004 3:00:59 am

the dates are from the the news class that comes from ez and the local is gb. the dates are only worng in line view, when i use full view they are shown corectly and in the ez admin interface all dates work.

Paul

paul harvey

Monday 09 February 2004 1:12:10 pm

the answer is here if anybody needs it

http://ez.no/community/forum/developer/printing_the_modified_and_published_dates_ini_a_article_list_

eZ debug

Timing: Jan 18 2025 18:29:41
Script start
Timing: Jan 18 2025 18:29:41
Module start 'content'
Timing: Jan 18 2025 18:29:41
Module end 'content'
Timing: Jan 18 2025 18:29:41
Script end

Main resources:

Total runtime0.1550 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.7266180.8359
Module start 'content' 0.00600.0048 768.562597.8672
Module end 'content' 0.01090.1439 866.4297537.3047
Script end 0.1547  1,403.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00362.3103200.0002
Check MTime0.00161.0014200.0001
Mysql Total
Database connection0.00070.428310.0007
Mysqli_queries0.106268.52561410.0008
Looping result0.00161.03931390.0000
Template Total0.143592.510.1435
Template load0.00080.514110.0008
Template processing0.142792.026410.1427
Override
Cache load0.00050.348910.0005
Sytem overhead
Fetch class attribute can translate value0.00050.342610.0005
XML
Image XML parsing0.00020.154210.0002
General
dbfile0.00462.9818200.0002
String conversion0.00000.003230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0003 secs