fixed time log

This commit is contained in:
Anonymous275 2020-02-06 17:40:07 +02:00
parent c47e8783e6
commit 4503338378
3 changed files with 3 additions and 6 deletions

View File

@ -55,7 +55,6 @@ void ServerMain(int Port, int MaxClients) {
} }
ENetHost *server; ENetHost *server;
ENetAddress address = {0}; ENetAddress address = {0};
address.host = ENET_HOST_ANY; //Bind the server to the default localhost. address.host = ENET_HOST_ANY; //Bind the server to the default localhost.

View File

@ -36,9 +36,9 @@ stringstream getDate() {
int month = 1 + ltm->tm_mon; int month = 1 + ltm->tm_mon;
int day = ltm->tm_mday; int day = ltm->tm_mday;
int hours = 1 + ltm->tm_hour; int hours = ltm->tm_hour;
int minutes = 1 + ltm->tm_min; int minutes = ltm->tm_min;
int seconds = 1 + ltm->tm_sec; int seconds = ltm->tm_sec;
string month_string; string month_string;
if (month < 10) month_string = "0" + to_string(month); if (month < 10) month_string = "0" + to_string(month);

View File

@ -2,8 +2,6 @@
// Created by Anonymous275 on 4/2/2020. // Created by Anonymous275 on 4/2/2020.
// //
#define LOGGER_H
#include <iostream> #include <iostream>
#include <ctime> #include <ctime>
#include <sstream> #include <sstream>