summaryrefslogtreecommitdiffstats
blob: 48841d29f53fe96ab8aa05bdc650f494b0be2484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (c) 2010 Kevin Smith
 * Licensed under the GNU General Public License v3.
 * See Documentation/Licenses/GPLv3.txt for more information.
 */

#include <Swiften/Parser/PayloadParsers/DelayParserFactory.h>

#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/date_time/time_facet.hpp>

namespace Swift {

DelayParserFactory::DelayParserFactory() {
	boost::posix_time::time_input_facet* facet = new boost::posix_time::time_input_facet("%Y-%m-%d %H:%M:%S%F%Q");
	locale = std::locale(std::locale::classic(), facet);
}

}