You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call the Timestamp conversion functions I have to do this:
WINEXPORT void decodeTimestamp(TIMESTAMP* timestamp, struct tm* tm)
{
// error correction in timestamp calculation of Firebird 2.5
timestamp->timestamp_date = timestamp->timestamp_date + Dec31_1899;
isc_decode_timestamp(timestamp, tm);
}
Submitted by: Lars Liedtke (corvan)
When I call the Timestamp conversion functions I have to do this:
WINEXPORT void decodeTimestamp(TIMESTAMP* timestamp, struct tm* tm)
{
// error correction in timestamp calculation of Firebird 2.5
timestamp->timestamp_date = timestamp->timestamp_date + Dec31_1899;
isc_decode_timestamp(timestamp, tm);
}
WINEXPORT void encodeTimestamp(struct tm* tm, TIMESTAMP* timestamp)
{
isc_encode_timestamp(tm, timestamp);
// error correction in timestamp calculation of Firebird 2.5
timestamp->timestamp_date = timestamp->timestamp_date - Dec31_1899;
}
Dec31_1899 is a const declared like this:
const int Dec31_1899 = 693960;
The text was updated successfully, but these errors were encountered: