mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
remove unused method in Timezone_WIN32.cpp
This commit is contained in:
parent
2c15b93dee
commit
c0ea70c2bf
@ -60,20 +60,6 @@ bool Timezone::isDst(const Timestamp& timestamp)
|
||||
}
|
||||
|
||||
|
||||
int Timezone::utcOffset(const Poco::Timestamp& timestamp)
|
||||
{
|
||||
std::time_t time = timestamp.epochTime();
|
||||
struct tm local;
|
||||
if (localtime_s(&local, &time))
|
||||
throw Poco::SystemException("cannot get UTC offset");
|
||||
struct tm utc;
|
||||
if (gmtime_s(&utc, &time))
|
||||
throw Poco::SystemException("cannot get UTC offset");
|
||||
std::time_t utctime = std::mktime(&utc);
|
||||
return time - utctime;
|
||||
}
|
||||
|
||||
|
||||
std::string Timezone::name()
|
||||
{
|
||||
std::string result;
|
||||
|
Loading…
Reference in New Issue
Block a user