Date problems

Author Message

mihnea stoian

Monday 15 December 2003 12:57:00 pm

I have made a news section and am displaying the date of the news items/articles on the site with

{$:item.object.published|l10n(shortdate)}

which makes my dates display as

31/12/1969.

I have checked the date on the computer that is hosting the eZ platform (installed with the installer on a XP machine) and it's fine. The date appears fine in the admin section, as well. The only place it is not displayed correctly is on the site.

Could it be I've overlooked something? Can I go somewhere and set the correct date?

Thank you,

Mihnea

Gunnstein Lye

Wednesday 17 December 2003 9:58:24 am

If {currentdate()|l10n(shortdate)} also returns the wrong date, then there's maybe something wrong with the way the system date is read. Otherwise, it could be that some objects have zero date. Try republishing one of them.

Khalid Khan

Friday 16 January 2004 1:02:18 am

I am having a similar problem. When I publish the article it stores the date as 31/12/1969. its giving me great trouble as the neww articles never show up on the page as their time stamps are the same .i.e 31/12/1969. How can this problem be solved. Plz help

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 19 2025 01:08:24
Script start
Timing: Jan 19 2025 01:08:24
Module start 'layout'
Timing: Jan 19 2025 01:08:24
Module start 'content'
Timing: Jan 19 2025 01:08:24
Module end 'content'
Timing: Jan 19 2025 01:08:24
Script end

Main resources:

Total runtime0.0196 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.1484152.6250
Module start 'layout' 0.00590.0032 741.773439.4453
Module start 'content' 0.00900.0081 781.218889.3203
Module end 'content' 0.01710.0024 870.539130.3047
Script end 0.0195  900.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002613.1673140.0002
Check MTime0.00115.7584140.0001
Mysql Total
Database connection0.00084.160310.0008
Mysqli_queries0.002814.334630.0009
Looping result0.00000.075510.0000
Template Total0.00189.110.0018
Template load0.00105.238710.0010
Template processing0.00083.838910.0008
Override
Cache load0.00083.885210.0008
General
dbfile0.00052.635280.0001
String conversion0.00000.040240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

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

Time used to render debug report: 0.0001 secs