mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Code Cleanup
- Converted atoi to strtol. - Added include, which is causing tinderbox fail.
This commit is contained in:
parent
38576ba08a
commit
b63e92b540
1 changed files with 2 additions and 1 deletions
|
@ -28,6 +28,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <inttypes.h>
|
||||||
#include <Att.h>
|
#include <Att.h>
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
#include <main.h>
|
#include <main.h>
|
||||||
|
@ -279,7 +280,7 @@ std::string renderAttribute (const std::string& name, const std::string& value)
|
||||||
if (a.type (name) == "date" &&
|
if (a.type (name) == "date" &&
|
||||||
value != "")
|
value != "")
|
||||||
{
|
{
|
||||||
Date d ((time_t)::atoi (value.c_str ()));
|
Date d ((time_t)::strtol (value.c_str (), NULL, 10));
|
||||||
return d.toString (context.config.get ("dateformat"));
|
return d.toString (context.config.get ("dateformat"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue