List Info

Thread: Beginning of week




Beginning of week
user name
2006-11-09 15:38:32
Gunnar Vestergaard wrote:
> When does a week begin? On Monday or on Sunday? In
Faroe Islands and 
> Denmark the week begins Monday. How do I make Plone
display the calendar 
> so that each week begins Monday?

The sad but simple answer is: you can't easily.

This is one of the most annoying missing features, which
will be fixed
in Plone 3.0.

If you only run sites from your Plone installation which
need Monday as
the first day of week, you can change the underlying code to
make this
happen.

Look in your instance home in the file
Products/CMFCalendar/CalendarTool.py and change the line:

calendar.setfirstweekday(6) #start day  Mon(0)-Sun(6)

to

calendar.setfirstweekday(0) #start day  Mon(0)-Sun(6)

You have to restart Zope afterwards.

HTH,
Hanno


------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Plone-i18n mailing list
Plone-i18nlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-i18n
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )