[Cppcms-users] booster::locale::as::ftime(...) sometimes causes wrong result
Brought to you by:
artyom-beilis
|
From: Petr J. <ele...@ex...> - 2013-06-17 08:01:13
|
Hi,
I'm not sure what the problem is here.
example:
std::istringstream is("2010-10-01");
date_time dt;
is >> as::ftime("%Y-%m-%d") >> dt;
In this case dt is correctly set to the right date.
But if:
std::istringstream is("10-01-2010");
date_time dt;
is >> as::ftime("%d-%m-%Y") >> dt;
In this case dt is set to the wrong date, usually a year earlier.
cppcms was compiled with ICU. the stringstreams failbit is false in both
cases.
Any ideas?
--
Please use PGP to encrypt your email to ensure our privacy is respected.
|