Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added time zone offset #47 #145

Merged
merged 1 commit into from
Jul 5, 2019
Merged

Conversation

joachimmetz
Copy link
Member

Added time zone offset #47

@joachimmetz joachimmetz added blocked Work cannot progress until another issue is resolved and removed blocked Work cannot progress until another issue is resolved labels Jun 23, 2019
@codecov
Copy link

codecov bot commented Jun 23, 2019

Codecov Report

Merging #145 into master will decrease coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #145      +/-   ##
==========================================
- Coverage   98.89%   98.84%   -0.05%     
==========================================
  Files          20       20              
  Lines        1623     1652      +29     
==========================================
+ Hits         1605     1633      +28     
- Misses         18       19       +1
Impacted Files Coverage Δ
dfdatetime/filetime.py 100% <100%> (ø) ⬆️
dfdatetime/ole_automation_date.py 100% <100%> (ø) ⬆️
dfdatetime/interface.py 98.28% <100%> (+0.02%) ⬆️
dfdatetime/fat_date_time.py 100% <100%> (ø) ⬆️
dfdatetime/systemtime.py 100% <100%> (ø) ⬆️
dfdatetime/cocoa_time.py 100% <100%> (ø) ⬆️
dfdatetime/hfs_time.py 100% <100%> (ø) ⬆️
dfdatetime/time_elements.py 96.76% <100%> (+0.02%) ⬆️
dfdatetime/webkit_time.py 100% <100%> (ø) ⬆️
dfdatetime/uuid_time.py 100% <100%> (ø) ⬆️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0092972...96dfcac. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Jun 23, 2019

Codecov Report

Merging #145 into master will decrease coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #145      +/-   ##
==========================================
- Coverage   98.89%   98.84%   -0.05%     
==========================================
  Files          20       20              
  Lines        1623     1652      +29     
==========================================
+ Hits         1605     1633      +28     
- Misses         18       19       +1
Impacted Files Coverage Δ
dfdatetime/filetime.py 100% <100%> (ø) ⬆️
dfdatetime/ole_automation_date.py 100% <100%> (ø) ⬆️
dfdatetime/interface.py 98.28% <100%> (+0.02%) ⬆️
dfdatetime/fat_date_time.py 100% <100%> (ø) ⬆️
dfdatetime/systemtime.py 100% <100%> (ø) ⬆️
dfdatetime/cocoa_time.py 100% <100%> (ø) ⬆️
dfdatetime/hfs_time.py 100% <100%> (ø) ⬆️
dfdatetime/time_elements.py 96.76% <100%> (+0.02%) ⬆️
dfdatetime/webkit_time.py 100% <100%> (ø) ⬆️
dfdatetime/uuid_time.py 100% <100%> (ø) ⬆️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0092972...96dfcac. Read the comment docs.

@@ -143,16 +143,16 @@ def CopyFromDateTimeString(self, time_string):
hours = date_time_values.get('hours', 0)
minutes = date_time_values.get('minutes', 0)
seconds = date_time_values.get('seconds', 0)
time_zone_offset = date_time_values.get('time_zone_offset', 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does it mean for a FAT timestamp to have a timezone offset? Do you think it would be better to raise an error if a user specifies a offset in the string other than 0?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Time zone offset represents if the date and time value has a time zone offset, not FAT specific. It is to support a time offset / time zone for date and time values.

self._number_of_seconds -= self._FAT_DATE_TO_POSIX_BASE

self.is_local_time = False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be True for FAT?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is_local_time is used in a different way by plaso, it should be removed.

@joachimmetz joachimmetz requested a review from Onager June 23, 2019 17:18
@joachimmetz
Copy link
Member Author

@Onager PTAL answered your questions

@Onager Onager merged commit 3e239ff into log2timeline:master Jul 5, 2019
@joachimmetz joachimmetz deleted the tzoffset branch July 6, 2019 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants