1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
// OpenVPN 3 Linux client -- Next generation OpenVPN client
//
// SPDX-License-Identifier: AGPL-3.0-only
//
// Copyright (C) 2017- OpenVPN Inc <sales@openvpn.net>
// Copyright (C) 2024- Răzvan Cojocaru <razvan.cojocaru@openvpn.com>
//
#include "datetime.hpp"
#include "../sysinfo/sysinfo.hpp"
namespace DevPosture {
Module::Dictionary DateTimeModule::Run(const Module::Dictionary &)
{
DateTime dt;
return {{"date", dt.date}, {"time", dt.time}, {"timezone", dt.timezone}};
}
} // namespace DevPosture
|