diff options
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/screenshot.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/screenshot.cc b/src/render/screenshot.cc index 7b40156..f75cbe8 100644 --- a/src/render/screenshot.cc +++ b/src/render/screenshot.cc @@ -68,10 +68,10 @@ void Screenshot::save() // check if the date has changed since the previous screenshot; std::stringstream filenamestr; - int day, month, year, hour, min; + int day, month, year, hour, min, sec; int date_serial; - sys::get_datetime(year, month, day, hour, min); + sys::get_datetime(year, month, day, hour, min, sec); date_serial = (day - 1) + (month - 1) * 31 + (year - 2000) * 31 * 12; if (current_date != date_serial) { current_number = 0; |