bug fixes

This commit is contained in:
JT Smith 2005-11-04 14:42:00 +00:00
parent e8a514b753
commit 775339a209
5 changed files with 48 additions and 51 deletions

View file

@ -12,8 +12,6 @@ my $quiet;
start();
addTimeZonesToUserPreferences();
#TODO (by somebody!):
# possibly instead of deleting old user timeZone preferences, convert them.
# MUST DO: any dates in WebGUI greater than epoch 2^32 must be reduced, because
# the new DateTime system uses Params::Validate, which will only validate integers
# up to 2^32 as SCALARs. :(
@ -25,6 +23,7 @@ sub addTimeZonesToUserPreferences {
print "\tDropping time offsets in favor of time zones.\n" unless ($quiet);
WebGUI::SQL->write("delete from userProfileData where fieldName='timeOffset'");
WebGUI::SQL->write("update userProfileField set dataValues='', fieldName='timeZone', dataType='timeZone', dataDefault=".quote("['America/Chicago']")." where fieldName='timeOffset'");
WebGUI::SQL->write("insert into userProfileData values ('1','timeZone','America/Chicago')");
}
sub removeUnneededFiles {