diff --git a/src/User.cpp b/src/User.cpp index 18ebef8a..7f030c90 100644 --- a/src/User.cpp +++ b/src/User.cpp @@ -15,6 +15,7 @@ #include #include #include +#include class CUserTimer : public CCron { public: @@ -223,7 +224,7 @@ bool CUser::ParseConfig(CConfig* pConfig, CString& sError) { SetTimezone(sValue); } if (pConfig->FindStringEntry("timezoneoffset", sValue)) { - if (abs(sValue.ToDouble()) > 0.1) { + if (fabs(sValue.ToDouble()) > 0.1) { CUtils::PrintError("WARNING: TimezoneOffset has been deprecated, now you can set your timezone by name"); } }