From b33934f6ce9b0227597c712dd6a76b7ed49deea3 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Fri, 19 Apr 2019 23:45:07 +0200 Subject: 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. --- src/common/Utilities/Util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common/Utilities/Util.h') 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); -- cgit v1.2.3