diff options
author | jackpoz <giacomopoz@gmail.com> | 2019-04-19 23:45:07 +0200 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2019-04-19 23:45:07 +0200 |
commit | b33934f6ce9b0227597c712dd6a76b7ed49deea3 (patch) | |
tree | f64ecc410dd4282ddc145f5f0527ef3b841f8a02 /src/common/Utilities/Util.h | |
parent | 3d3b7f438c6638aed998f4233b809826a3cf0f54 (diff) |
Core/Calendar: Improve calendar timezone handling
Improve calendar timezone handling by at least creating events with the correct time if both client and server are in the same timezone. There is currently no information received from the client about in which timezone it is.
Diffstat (limited to 'src/common/Utilities/Util.h')
-rw-r--r-- | src/common/Utilities/Util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/Utilities/Util.h b/src/common/Utilities/Util.h index 78019885d99..193981e31ae 100644 --- a/src/common/Utilities/Util.h +++ b/src/common/Utilities/Util.h @@ -58,6 +58,7 @@ private: TC_COMMON_API int32 MoneyStringToMoney(std::string const& moneyString); TC_COMMON_API struct tm* localtime_r(time_t const* time, struct tm *result); +TC_COMMON_API time_t LocalTimeToUTCTime(time_t time); TC_COMMON_API std::string secsToTimeString(uint64 timeInSecs, bool shortText = false, bool hoursOnly = false); TC_COMMON_API uint32 TimeStringToSecs(std::string const& timestring); |