Stop tempting the devil and use the proper type for time
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9513 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
0e8ff0e40a
commit
99a05b145e
@ -132,7 +132,7 @@ void Addon::writeXML(std::ofstream *out_stream)
|
||||
// ----------------------------------------------------------------------------
|
||||
std::string Addon::getDateAsString() const
|
||||
{
|
||||
const struct tm *t = gmtime((time_t*)&m_date);
|
||||
const struct tm *t = gmtime(&m_date);
|
||||
char s[16];
|
||||
strftime(s, 128, "%d.%m.%Y", t);
|
||||
return s;
|
||||
|
@ -35,7 +35,7 @@ public:
|
||||
#ifdef WIN32
|
||||
typedef unsigned __int64 TimeType;
|
||||
#else
|
||||
typedef uint_least64_t TimeType;
|
||||
typedef time_t TimeType;
|
||||
#endif
|
||||
|
||||
static TimeType getTimeSinceEpoch()
|
||||
|
Loading…
Reference in New Issue
Block a user