diff --git a/src/Article.cxx b/src/Article.cxx index 12fea4c..e668d5f 100644 --- a/src/Article.cxx +++ b/src/Article.cxx @@ -116,7 +116,7 @@ namespace Article { else if (line.find(k_authors) == 0) strncpy(m->authors, line.substr(k_authors.length()).c_str(), sizeof(m->authors)); else if (line.find(k_published) == 0) - m->publish_ts = atoi(line.substr(k_published.length()).c_str()); + m->publish_ts = atol(line.substr(k_published.length()).c_str()); else std::cerr << "warning: ignoring unknown key/value due to unknown key: " << line << std::endl; } else if (line[0] == '[') {