| 27 | namespace |
| 28 | { |
| 29 | std::string GetCurrentISO8601DateTime() |
| 30 | { |
| 31 | std::timespec ts; |
| 32 | std::timespec_get(&ts, TIME_UTC); |
| 33 | std::array<char, 21> buffer{}; // YYYY-MM-DDThh:mm:ssZ |
| 34 | |
| 35 | std::strftime(buffer.data(), buffer.size(), "%FT%TZ", std::gmtime(&ts.tv_sec)); |
| 36 | |
| 37 | return buffer.data(); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | Form::Section::Section(const std::string& title, const std::string& description) |
no test coverage detected