Fix wrong date calculation introduced in r841
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@871 a6f86f6d-0131-4f8e-9e7b-e335508773d5
This commit is contained in:
parent
bf398fcd94
commit
8e41fbbfce
@ -52,7 +52,7 @@ class EBML_DLL_API EbmlDate : public EbmlElement {
|
||||
\brief set the date with a UNIX/C/EPOCH form
|
||||
\param NewDate UNIX/C date in UTC (no timezone)
|
||||
*/
|
||||
void SetEpochDate(int64 NewDate) {myDate = NewDate - UnixEpochDelay * 1000000000; SetValueIsSet();}
|
||||
void SetEpochDate(int64 NewDate) {myDate = (NewDate - UnixEpochDelay) * 1000000000; SetValueIsSet();}
|
||||
EbmlDate &SetValue(int64 NewValue) {SetEpochDate(NewValue); return *this;}
|
||||
|
||||
/*!
|
||||
|
Loading…
x
Reference in New Issue
Block a user