CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Should there be a setting to select start day for the week?
Pages: [1]

Author Topic: Should there be a setting to select start day for the week?  (Read 495 times)

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Should there be a setting to select start day for the week?
April 02, 2015, 12:12:54 am
Relative dates filters based on the time interval "week" assume that Sunday is the first day of the week.   This is not true in all countries, for example Europe and many countries in Asia/Pacific region consider Monday to be the first day of the week ( http://en.wikipedia.org/wiki/File:First_Day_of_Week_World_Map.svg ).

Should this be a localisation setting? (located after fiscal year perhaps)  Would there be any consequences throughout CiviCRM apart from the relative date filters in searches and reports?

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: Should there be a setting to select start day for the week?
April 02, 2015, 05:32:01 am
+1

People are probably used to work around this issue, but it should be rather easy to add, and will make CiviCRM more world-friendly.

Edit: apparently in Quebec, in French, the suggested first day of the week is Monday, but lots of calendars still use Sunday. ISO recommends Monday as the first day of the week. http://bdl.oqlf.gouv.qc.ca/bdl/gabarit_bdl.asp?Th=2&t1=&id=1241
« Last Edit: April 02, 2015, 06:37:34 am by mathieu »
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: Should there be a setting to select start day for the week?
April 02, 2015, 07:04:47 am
Depending on how far we want to push this, the calendar popups also use Sunday as the first day of the week. Presumably this is configurable in the widget that is used.

(This sparked some debate on a few IRC channels I asked on.. since apparently Canada uses ISO-8601, therefore Monday is the first day of the week for civil calendars, but in practice, most people and common household calendars will use Sunday.)
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Should there be a setting to select start day for the week?

This forum was archived on 2017-11-26.