SONARJAVA-828 Complementary check on time conversion and better handling of flags