
Hi, you also should change your last line to std::cout << dt1.local_time_in(tz2).local_time() << std::endl; Regards, Roland Steven Watanabe wrote:
AMDG
Boris wrote:
The program uses CET which is the abbreviation for Central European Time which is UTC+1. If the UTC time is now 12:00:00 the local time in CET+1 must be 14:00:00 (and not 13:00:00). Accordingly the local time in CET+2 must be 15:00:00. Why Boost.DateTime appends "CET" to the local time in CET+2 I don't understand either.
From http://www.boost.org/doc/html/date_time/local_time.html#date_time.local_time...
'offset' is the offset from UTC.
In Christ, Steven Watanabe
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users