Changeset 1301

Show
Ignore:
Timestamp:
03/03/08 14:00:52 (6 months ago)
Author:
kindlund
Message:

Apparently, DateTime::HiRes→now() was reporting UTC times, instead of local time zone times.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • honeyclient/trunk/lib/HoneyClient/Agent/Driver/Browser.pm

    r1289 r1301  
    512512# Outputs: timestamp 
    513513sub _getTimestamp { 
    514     my $dt = DateTime::HiRes->now(); 
     514    my $dt = DateTime::HiRes->now(time_zone => "local"); 
    515515    return $dt->ymd('-') . " " . 
    516516           $dt->hms(':') . "." . 
  • honeyclient/trunk/lib/HoneyClient/Manager.pm

    r1289 r1301  
    933933sub dbRegisterClient { 
    934934    my $vm = shift; 
    935     my $dt = DateTime::HiRes->now(); 
     935    my $dt = DateTime::HiRes->now(time_zone => "local"); 
    936936 
    937937    # Register the VM with the DB 
  • honeyclient/trunk/lib/HoneyClient/Manager/VM.pm

    r1289 r1301  
    44114411        !exists($args{'snapshot_file'}) || 
    44124412        !defined($args{'snapshot_file'})) { 
    4413         my $dt = DateTime::HiRes->now(); 
     4413        my $dt = DateTime::HiRes->now(time_zone => "local"); 
    44144414        my $date = $dt->ymd('') . 'T' . $dt->hms(''); 
    44154415        $args{'snapshot_file'} = "$SNAPSHOT_PATH/$dirName-$date.tar.gz";