X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftime%2Ftimezone.cpp;h=56fcf8f588a389325a1fda85cec2577b82b1c54d;hb=62a984b46e08740d19cb055f01be3365982f6b9d;hp=17d6bad846b981d31e663c1099d7ed81c18fab19;hpb=d424f658ddb2861ed31f607ed17ee0d420d4b4cd;p=libs%2Fcore.git diff --git a/source/time/timezone.cpp b/source/time/timezone.cpp index 17d6bad..56fcf8f 100644 --- a/source/time/timezone.cpp +++ b/source/time/timezone.cpp @@ -1,18 +1,11 @@ -/* $Id$ - -This file is part of libmspcore -Copyright © 2008-2009 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include #ifdef WIN32 #include #else #include #endif +#include #include -#include "../core/except.h" #include "timestamp.h" #include "timezone.h" #include "units.h" @@ -40,7 +33,7 @@ TimeZone get_local_timezone() TIME_ZONE_INFORMATION tzinfo; DWORD dst = GetTimeZoneInformation(&tzinfo); if(dst==TIME_ZONE_ID_INVALID) - throw Msp::SystemError("Failed to get time zone information", GetLastError()); + throw Msp::system_error("GetTimeZoneInformation"); int offset = tzinfo.Bias; if(dst==TIME_ZONE_ID_STANDARD)