datetime: wrong weekday

Author Message

Christiane Kloss

Wednesday 02 March 2005 9:36:06 am

Hi,

I tried to format a date with the following code:

{$node.object.data_map.date.data_int|datetime(custom,"%l, %d. %F %Y")}

The output is 'Donnerstag, 05. Januar 2005' (Thursday, 05. January 2005)

The date is right - except for the weekday:
January 5th 2005 was a WEDNESDAY...

How could this happen????

Łukasz Serwatka

Wednesday 02 March 2005 11:21:04 pm

Hi Christiane,

This was a bug in 3.5.
More info here
http://ez.no/community/bugs/datetime_and_mondayfirst
http://ez.no/community/bugs/italian_weekdays_right_shifted_by_one_in_date

I recommend upgrade your eZ publish to 3.5.1 version.
http://ez.no/community/news/ez_publish_3_5_1

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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:00:02
Script start
Timing: Jan 18 2025 16:00:02
Module start 'layout'
Timing: Jan 18 2025 16:00:02
Module start 'content'
Timing: Jan 18 2025 16:00:04
Module end 'content'
Timing: Jan 18 2025 16:00:04
Script end

Main resources:

Total runtime1.4991 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.9063152.6250
Module start 'layout' 0.00510.0187 740.531339.4453
Module start 'content' 0.02381.4739 779.9766534.3516
Module end 'content' 1.49770.0014 1,314.32818.1719
Script end 1.4991  1,322.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.2465160.0002
Check MTime0.00150.0989160.0001
Mysql Total
Database connection0.00050.034910.0005
Mysqli_queries1.443796.3014540.0267
Looping result0.00050.0367520.0000
Template Total1.401993.520.7010
Template load0.00400.269420.0020
Template processing1.397993.245820.6989
Template load and register function0.00010.006410.0001
states
state_id_array0.00490.328710.0049
state_identifier_array0.00150.097420.0007
Override
Cache load0.00170.1124200.0001
Sytem overhead
Fetch class attribute can translate value0.00100.066420.0005
Fetch class attribute name0.00170.112840.0004
XML
Image XML parsing0.00100.069020.0005
class_abstraction
Instantiating content class attribute0.00000.000540.0000
General
dbfile0.00090.0576240.0000
String conversion0.00000.000740.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs