]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/timezone.cpp
Drop copyright and license notices from source files
[libs/core.git] / source / time / timezone.cpp
index 17d6bad846b981d31e663c1099d7ed81c18fab19..56fcf8f588a389325a1fda85cec2577b82b1c54d 100644 (file)
@@ -1,18 +1,11 @@
-/* $Id$
-
-This file is part of libmspcore
-Copyright © 2008-2009  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include <cstdlib>
 #ifdef WIN32
 #include <windows.h>
 #else
 #include <fcntl.h>
 #endif
+#include <msp/core/systemerror.h>
 #include <msp/strings/format.h>
-#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)