! -> Note
$ -> Affected files
+01-Nov-2009 Joe Hunt
+! Changed $date_system value of 3 to be traditional, but non-workday is Friday
+ and start of week is Saturday. For DatePicker.
+$ config.default.php
+ /includes/ui/ui_view.inc
+
30-Oct-2009 Janusz Dobrowolski
# Fixed non-default company selection bug on login.
$ /includes/session.inc
$accounts_alpha = 0;
/* Date systems. 0 = traditional, 1 = Jalali used by Iran, nabour countries, Afghanistan and some other Central Asian nations,
- 2 = Islamic used by other arabic nations */
+ 2 = Islamic used by other arabic nations. 3 = traditional, but where non-workday is Friday and start of week is Saturday */
$date_system = 0;
/* email stock location if order below reorder-level */
$how = user_date_format(); // 0 = us/ca, 1 = eu, au, nz, 2 = jp, sw
$sep = $dateseps[user_date_sep()]; // date separator
- $wstart = (($date_system == 1 || $date_system == 2) ? 6 : ($how == 0 ? 0 : 1)); // weekstart (sun = 0, mon = 1)
+ $wstart = (($date_system == 1 || $date_system == 2 || $date_system == 3) ? 6 : ($how == 0 ? 0 : 1)); // weekstart (sun = 0, mon = 1)
$months = array(_("January"),_("February"),_("March"),_("April"),_("May"),_("June"),_("July"),_("August"),_("September"),_("October"),_("November"),_("December"));
$wdays = array(_("Su"),_("Mo"),_("Tu"),_("We"),_("Th"),_("Fr"),_("Sa"));
$wno = _("W"); // week no
if (dayOfMonth == selectedDay && currentYear == selectedYear && currentMonth == selectedMonth) {
css_class = 'current';
";
- if ($date_system == 1 || $date_system == 2)
+ if ($date_system == 1 || $date_system == 2 || $date_system == 3)
$js .= "
} else if (dayOfWeek == 5) {
";