Moved DateTime helper functions to service class

This commit is contained in:
Nav
2022-12-26 22:10:49 +00:00
parent 90ef72f686
commit 0a15ce8a84
8 changed files with 22 additions and 19 deletions

View File

@@ -6,7 +6,7 @@
#include <optional>
#include <cstdint>
#include "src/Helpers/DateTime.hpp"
#include "src/Services/DateTimeService.hpp"
namespace Bloom::Events
{
@@ -38,7 +38,7 @@ namespace Bloom::Events
{
public:
int id = ++(Event::lastEventId);
QDateTime createdTimestamp = DateTime::currentDateTime();
QDateTime createdTimestamp = Services::DateTimeService::currentDateTime();
static constexpr EventType type = EventType::GENERIC;
static const inline std::string name = "GenericEvent";