eztime datatype and daylight savings

Author Message

Bruce Morrison

Sunday 09 January 2005 5:54:30 pm

I have a content class that uses the eztime datatype. Content was created when daylight savings was not in effect. The times entered were displayed as required.

Now that daylight savings is in effect the times have moved forward an
hour due to daylight savings. Unfortinually this is causing problems :(

It appears that there is timezone information being taken into account when the information is saved and/or retrieved (though context is not being stored - time zone / daylightsaving in effect?)

I don't understand why this is the case. Regardless of timezone 10am should be 10 am shouldn't it? So if the time entered is saved as the number of seconds since midnight then there would be no problems of this sort.

Is there any reason why this datatype was created this way?

This is using 3.4.4.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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 20:47:10
Script start
Timing: Jan 18 2025 20:47:10
Module start 'layout'
Timing: Jan 18 2025 20:47:10
Module start 'content'
Timing: Jan 18 2025 20:47:11
Module end 'content'
Timing: Jan 18 2025 20:47:11
Script end

Main resources:

Total runtime0.7974 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.0064 589.0547152.6250
Module start 'layout' 0.00640.0027 741.679739.4453
Module start 'content' 0.00910.7869 781.1250468.2578
Module end 'content' 0.79610.0013 1,249.38288.3125
Script end 0.7974  1,257.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4296160.0002
Check MTime0.00160.1967160.0001
Mysql Total
Database connection0.00110.142410.0011
Mysqli_queries0.757594.9985460.0165
Looping result0.00040.0494440.0000
Template Total0.763195.720.3815
Template load0.00240.302320.0012
Template processing0.760695.390220.3803
Template load and register function0.00010.012810.0001
states
state_id_array0.00130.160510.0013
state_identifier_array0.00140.173720.0007
Override
Cache load0.00200.2496130.0002
Sytem overhead
Fetch class attribute can translate value0.00060.074910.0006
Fetch class attribute name0.00060.080620.0003
XML
Image XML parsing0.00040.046910.0004
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00080.0954160.0000
String conversion0.00000.001140.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs