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_

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 03:28:33
Script start
Timing: Jan 31 2025 03:28:33
Module start 'layout'
Timing: Jan 31 2025 03:28:33
Module start 'content'
Timing: Jan 31 2025 03:28:34
Module end 'content'
Timing: Jan 31 2025 03:28:34
Script end

Main resources:

Total runtime1.3038 sec
Peak memory usage8,192.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.1328151.2109
Module start 'layout' 0.00650.0050 739.3438220.7031
Module start 'content' 0.01151.2914 960.04694,470.8516
Module end 'content' 1.30300.0008 5,430.898411.8516
Script end 1.3038  5,442.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2646160.0002
Check MTime0.00130.0970160.0001
Mysql Total
Database connection0.00080.061810.0008
Mysqli_queries1.203692.3145600.0201
Looping result0.00060.0483580.0000
Template Total1.235294.720.6176
Template load0.00200.156720.0010
Template processing1.233194.577220.6165
Template load and register function0.00200.153110.0020
states
state_id_array0.00260.197010.0026
state_identifier_array0.00240.186420.0012
Override
Cache load0.00180.1401940.0000
Sytem overhead
Fetch class attribute can translate value0.00180.137020.0009
Fetch class attribute name0.00250.192150.0005
XML
Image XML parsing0.00190.142020.0009
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00320.2434150.0002
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs