[LON-CAPA-cvs] cvs: loncom /interface domainprefs.pm
raeburn
raeburn at source.lon-capa.org
Wed Aug 13 15:13:09 EDT 2025
raeburn Wed Aug 13 19:13:09 2025 EDT
Modified files:
/loncom/interface domainprefs.pm
Log:
- Bug 6971 Individual user preference for Time Zone.
- default when no domain configuration already set for users to set their
timezone is to disallow.
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.452 loncom/interface/domainprefs.pm:1.453
--- loncom/interface/domainprefs.pm:1.452 Tue May 13 04:07:07 2025
+++ loncom/interface/domainprefs.pm Wed Aug 13 19:13:09 2025
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set domain-wide configuration settings
#
-# $Id: domainprefs.pm,v 1.452 2025/05/13 04:07:07 raeburn Exp $
+# $Id: domainprefs.pm,v 1.453 2025/08/13 19:13:09 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2673,6 +2673,9 @@
}
} else {
my $checked = 'checked="checked" ';
+ if ($item eq 'timezone') {
+ $checked = '';
+ }
if (ref($settings) eq 'HASH') {
if (ref($settings->{$item}) eq 'HASH') {
if ($settings->{$item}->{'default'} == 0) {
@@ -2804,6 +2807,9 @@
}
} else {
my $checked = 'checked="checked" ';
+ if ($item eq 'timezone') {
+ $checked = '';
+ }
if (ref($settings) eq 'HASH') {
if (ref($settings->{$item}) eq 'HASH') {
if ($settings->{$item}->{'_LC_adv'} == 0) {
@@ -14567,6 +14573,10 @@
if ($confhash{$item}{$type} ne $unset) {
$changes{$item}{$type} = 1;
}
+ } elsif ($item eq 'timezone') {
+ if ($confhash{$item}{$type}) {
+ $changes{$item}{$type} = 1;
+ }
} else {
if (!$confhash{$item}{$type}) {
$changes{$item}{$type} = 1;
@@ -14582,6 +14592,10 @@
if ($confhash{$type} ne $unset) {
$changes{$type} = 1;
}
+ } elsif ($item eq 'timezone') {
+ if ($confhash{$item}{$type}) {
+ $changes{$item}{$type} = 1;
+ }
} else {
if (!$confhash{$item}{$type}) {
$changes{$item}{$type} = 1;
More information about the LON-CAPA-cvs
mailing list