- The export system now attempts to create the export path if it doesn't

already exist.
 - fix [ 1287741 ] 6.7.3 Cannot insert a WebGUI collateral image in IE.
 - fix [ 1293163 ] Error when using Syndication
 - fix [ 1295718 ] Moderating submissions/posts is broken
 - fix [ 1288770 ] Couldn't call method www_view on asset
 - fix [ 1278672 ] Timezones does not still not work properly in webgui
This commit is contained in:
JT Smith 2005-09-21 20:04:15 +00:00
parent 7a76e2efdc
commit 5efbd4a709
8 changed files with 32 additions and 11 deletions

View file

@ -744,8 +744,13 @@ A string in the format of YYYY-MM-DD or YYYY-MM-DD HH:MM:SS.
=cut
sub setToEpoch {
my $set = shift;
# in epochToSet we use epochToHuman, which includes the time
# offset of the user, so we need to remove that here.
my $offset = $session{user}{timeOffset} || 0;
$set -= $offset*3600;
my @now = epochToArray(WebGUI::DateTime::time());
my ($date,$time) = split(/ /,$_[0]);
my ($date,$time) = split(/ /,$set);
my ($year, $month, $day) = split(/\-/,$date);
my ($hour, $minute, $second) = split(/\:/,$time);
if (int($year) < 3000 && int($year) > 1000) {