Negative timestamp

Author Message

Pablo Bussi

Wednesday 03 May 2006 7:23:40 am

I noted that when publishing dates before 1970, the database stored negative timestamps (which is fine), but the admin site displayed an empty attribute.
What i did is remove the condition

{section show=$attribute.content.is_valid} 

from both view and edit ezdate datatype template.
I know this is not a fancy solution, but it works!

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 18 2025 16:24:26
Script start
Timing: Jan 18 2025 16:24:26
Module start 'layout'
Timing: Jan 18 2025 16:24:26
Module start 'content'
Timing: Jan 18 2025 16:24:27
Module end 'content'
Timing: Jan 18 2025 16:24:27
Script end

Main resources:

Total runtime0.6712 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.7891152.6094
Module start 'layout' 0.00580.0025 740.398439.4141
Module start 'content' 0.00830.6614 779.8125434.3047
Module end 'content' 0.66970.0015 1,214.11728.3438
Script end 0.6712  1,222.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4660160.0002
Check MTime0.00130.1908160.0001
Mysql Total
Database connection0.00090.129910.0009
Mysqli_queries0.635594.6751460.0138
Looping result0.00040.0627440.0000
Template Total0.642695.720.3213
Template load0.00190.280420.0009
Template processing0.640795.456720.3204
Template load and register function0.00010.017310.0001
states
state_id_array0.00080.115610.0008
state_identifier_array0.00140.207720.0007
Override
Cache load0.00160.236390.0002
Sytem overhead
Fetch class attribute can translate value0.00060.088610.0006
Fetch class attribute name0.00140.205020.0007
XML
Image XML parsing0.00190.276410.0019
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00210.3072160.0001
String conversion0.00000.000840.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs