From 8e77a1c6747dddf585d653c34e9806e976d2c73a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 31 May 2011 00:11:57 +0300 Subject: [PATCH] Use new system_error class in TimeZone --- source/time/timezone.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/time/timezone.cpp b/source/time/timezone.cpp index 17d6bad..7c83748 100644 --- a/source/time/timezone.cpp +++ b/source/time/timezone.cpp @@ -11,8 +11,8 @@ Distributed under the LGPL #else #include #endif +#include #include -#include "../core/except.h" #include "timestamp.h" #include "timezone.h" #include "units.h" @@ -40,7 +40,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) -- 2.43.0