mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-15 22:50:36 +02: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…
x
Reference in New Issue
Block a user