Converts a timestamp from its local datetime fields to UTC.
| 674 | |
| 675 | // Converts a timestamp from its local datetime fields to UTC. |
| 676 | void TimeZoneUtil::localTimeStampToUtc(ISC_TIMESTAMP& timeStamp, Callbacks* cb) |
| 677 | { |
| 678 | ISC_TIMESTAMP_TZ tsTz; |
| 679 | tsTz.utc_timestamp.timestamp_date = timeStamp.timestamp_date; |
| 680 | tsTz.utc_timestamp.timestamp_time = timeStamp.timestamp_time; |
| 681 | tsTz.time_zone = cb->getSessionTimeZone(); |
| 682 | |
| 683 | localTimeStampToUtc(tsTz); |
| 684 | |
| 685 | timeStamp.timestamp_date = tsTz.utc_timestamp.timestamp_date; |
| 686 | timeStamp.timestamp_time = tsTz.utc_timestamp.timestamp_time; |
| 687 | } |
| 688 | |
| 689 | // Converts a timestamp from its local datetime fields to UTC. |
| 690 | void TimeZoneUtil::localTimeStampToUtc(ISC_TIMESTAMP_TZ& timeStampTz) |
nothing calls this directly
no test coverage detected