-/* $Id$
-
-This file is part of libmspcore
-Copyright © 2006 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <cstdlib>
#include <stdexcept>
#include <msp/strings/format.h>
void DateTime::convert_timezone(const TimeZone &tz)
{
- add_raw((zone.get_offset()-tz.get_offset()).raw());
+ add_raw((tz.get_offset()-zone.get_offset()).raw());
zone = tz;
}
if(const TimeDelta &offs = zone.get_offset())
{
int m = abs(static_cast<int>(offs/Time::min));
- result += Msp::format("%c%02d:%02d", (offs<zero ? '+' : '-'), m/60, m%60);
+ result += Msp::format("%c%02d:%02d", (offs<zero ? '-' : '+'), m/60, m%60);
}
else
result += 'Z';