First day of week: Monday

Author Message

Softriva .com

Saturday 17 June 2006 12:51:49 pm

in the aaa-AA.ini in share/locale directory there is a configuration key=value as:

MondayFirst=yes

With the above, First day of week is Monday. If

MondayFirst=no 

then First day of week: Sunday

In some countries the first day of the week is neither Monday nor Sunday. Is there away around this. I mean is there away to set the first day of the week to be different from Monday or Sunday.

Steven E. Bailey

Monday 19 June 2006 6:35:51 am

Looks like the MondayFirst is only used in lib/ezlocale/classes/ezlocale.php which has this defined:

        $this->DayNames = array( 0 => 'sun', 1 => 'mon', 2 => 'tue',
                                 3 => 'wed', 4 => 'thu', 5 => 'fri', 6 => 'sat' );

        $this->WeekDays = array( 0, 1, 2, 3, 4, 5, 6 );

Looks like you could hack WeekDays if you need a different start day. As in:

$this->WeekDays = array( 5, 6, 0, 1, 2, 3, 4 );

for a Friday start...

Of course, I haven't tested this and there may be a more elegant solution...

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

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 20 2025 06:44:46
Script start
Timing: Jan 20 2025 06:44:46
Module start 'layout'
Timing: Jan 20 2025 06:44:46
Module start 'content'
Timing: Jan 20 2025 06:44:47
Module end 'content'
Timing: Jan 20 2025 06:44:47
Script end

Main resources:

Total runtime0.6386 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.0054 589.1797152.6250
Module start 'layout' 0.00540.0037 741.804739.4453
Module start 'content' 0.00910.6280 781.2500527.7031
Module end 'content' 0.63720.0014 1,308.95318.1641
Script end 0.6385  1,317.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5336160.0002
Check MTime0.00150.2370160.0001
Mysql Total
Database connection0.00070.111210.0007
Mysqli_queries0.592792.8269540.0110
Looping result0.00050.0860520.0000
Template Total0.607095.120.3035
Template load0.00230.365220.0012
Template processing0.604694.684720.3023
Template load and register function0.00030.041810.0003
states
state_id_array0.00070.116210.0007
state_identifier_array0.00080.119020.0004
Override
Cache load0.00190.3018170.0001
Sytem overhead
Fetch class attribute can translate value0.00070.102720.0003
Fetch class attribute name0.00120.192930.0004
XML
Image XML parsing0.00070.116820.0004
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00090.1412170.0001
String conversion0.00000.002040.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/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/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs