aboutsummaryrefslogtreecommitdiff
path: root/src/announce.cc
diff options
context:
space:
mode:
authorschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2005-08-23 22:40:20 +0000
committerschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2005-08-23 22:40:20 +0000
commit7f165b71c4f59bdf79e4be30a635523130692df9 (patch)
treeec6374ae10f665dc17eec6ad98be48018facac2c /src/announce.cc
parent07a6596de7a9e95892f1300f274f15422ceff011 (diff)
Correct Y2K bug: gmtime() counts years since 1900, so have to add 1900
to get a 4 digit year. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@55 83718e91-0e4f-0410-abf4-91180603181f
Diffstat (limited to 'src/announce.cc')
-rw-r--r--src/announce.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/announce.cc b/src/announce.cc
index cf156de..f4088f8 100644
--- a/src/announce.cc
+++ b/src/announce.cc
@@ -92,7 +92,7 @@ namespace Formaline
time_t const tim = time (0);
struct tm * const ptm = gmtime (& tim);
job_idbuf << setfill ('0')
- << setw(4) << ptm->tm_year
+ << setw(4) << 1900 + ptm->tm_year
<< setw(2) << ptm->tm_mon
<< setw(2) << ptm->tm_mday
<< "-"