@@ -44,23 +44,23 @@ def print_prefetch_key_value()
44
44
end
45
45
end
46
46
47
- def timezone_key_values ( key_value )
47
+ def print_timezone_key_values ( key_value )
48
48
# Looks for timezone from registry
49
49
timezone = registry_getvaldata ( "HKLM\\ SYSTEM\\ CurrentControlSet\\ Control\\ TimeZoneInformation" , key_value )
50
50
tz_bias = registry_getvaldata ( "HKLM\\ SYSTEM\\ CurrentControlSet\\ Control\\ TimeZoneInformation" , "Bias" )
51
51
if timezone . nil? or tz_bias . nil?
52
52
print_line ( "Couldn't find key/value for timezone from registry." )
53
53
else
54
- print_good ( "Remote: Timezone is %s." % timezone )
55
- if tz_bias < 0xfff
56
- print_good ( "Remote: Localtime bias to UTC: -%s minutes." % tz_bias )
57
- else
58
- offset = 0xffffffff
59
- bias = offset - tz_bias
60
- print_good ( "Remote: Localtime bias to UTC: +%s minutes." % bias )
61
- end
54
+ print_good ( "Remote: Timezone is %s." % timezone )
55
+ if tz_bias < 0xfff
56
+ print_good ( "Remote: Localtime bias to UTC: -%s minutes." % tz_bias )
57
+ else
58
+ offset = 0xffffffff
59
+ bias = offset - tz_bias
60
+ print_good ( "Remote: Localtime bias to UTC: +%s minutes." % bias )
62
61
end
63
62
end
63
+ end
64
64
65
65
def gather_pf_info ( name_offset , hash_offset , runcount_offset , filename , table )
66
66
# We'll load the file and parse information from the offsets
@@ -146,7 +146,7 @@ def run
146
146
"Filename"
147
147
] )
148
148
print_prefetch_key_value
149
- timezone_key_values ( key_value )
149
+ print_timezone_key_values ( key_value )
150
150
print_good ( "Current UTC Time: %s" % Time . now . utc )
151
151
sys_root = expand_path ( "%SYSTEMROOT%" )
152
152
full_path = sys_root + "\\ Prefetch\\ "
0 commit comments