mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:43:02 +01:00
Fix #6790 - MON$ATTACHMENTS.MON$TIMESTAMP is incorrect when DefaultTimeZone is
configured with time zone different from the server's default.
This commit is contained in:
parent
5018dd6109
commit
8429c95795
@ -797,13 +797,8 @@ bool TimeZoneUtil::decodeTimeStamp(const ISC_TIMESTAMP_TZ& timeStampTz, bool gmt
|
||||
|
||||
ISC_TIMESTAMP_TZ TimeZoneUtil::getCurrentSystemTimeStamp()
|
||||
{
|
||||
TimeStamp now = TimeStamp::getCurrentTimeStamp();
|
||||
|
||||
ISC_TIMESTAMP_TZ tsTz;
|
||||
tsTz.utc_timestamp = now.value();
|
||||
auto tsTz = getCurrentGmtTimeStamp();
|
||||
tsTz.time_zone = getSystemTimeZone();
|
||||
localTimeStampToUtc(tsTz);
|
||||
|
||||
return tsTz;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user