id summary reporter owner description type status milestone component version severity resolution keywords cc 12910 boost::date_time::time_input_facet throws when using %j alone Laurent Dupuy James E. King, III "With a format such as `""%j-%H:%M:%S""`, `boost::date_time::time_input_facet` throws an error because when using `""%j""`, the computation of the date is: {{{#!cpp date_type d(not_a_date_time); if (day_of_year > 0) { d = date_type(static_cast(t_year-1),12,31) + date_duration_type(day_of_year); } }}} And `t_year` is 1400! I am in a situation where I need to parse such a date/time though... Instead couldn't the computation be as follows? {{{#!cpp date_type d(not_a_date_time); if (day_of_year > 0) { d = date_type(static_cast(t_year), 1, 1) + date_duration_type(day_of_year - 1); } }}} If so, the result of parsing `""263-08:09:10""` would be `""1400-Sep-20 08:09:10 UTC""`. (And I'm good with that.) Test exposing the problem: http://coliru.stacked-crooked.com/a/16f2f96ee808afa2" Bugs closed Boost 1.67.0 date_time Boost 1.63.0 Problem fixed