We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3b93ef commit 5a4c6ebCopy full SHA for 5a4c6eb
include/jwt-cpp/jwt.h
@@ -2632,7 +2632,8 @@ namespace jwt {
2632
*/
2633
date as_date() const {
2634
using std::chrono::system_clock;
2635
- if (get_type() == json::type::number) return system_clock::from_time_t(static_cast<std::time_t>(std::round(as_number())));
+ if (get_type() == json::type::number)
2636
+ return system_clock::from_time_t(static_cast<std::time_t>(std::round(as_number())));
2637
return system_clock::from_time_t(static_cast<std::time_t>(as_integer()));
2638
}
2639
0 commit comments