]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
iSmall Y2k fix to SNPPClient.c++, the year section in the HOLD param
authorRobert Colquhoun <rjc@trump.net.au>
Wed, 8 Mar 2000 13:18:52 +0000 (13:18 +0000)
committerRobert Colquhoun <rjc@trump.net.au>
Wed, 8 Mar 2000 13:18:52 +0000 (13:18 +0000)
thanks to John Sellens john@generalconcepts.com for this

util/SNPPClient.c++

index 509bb2fe0b3139b554a24459cf56b836cb50793a..95e659cffb25f4ede7c6859dec4119f7526c70bd 100644 (file)
@@ -1005,7 +1005,7 @@ SNPPClient::setHoldTime(u_int t)
     time_t tv = t;
     struct tm* tm = gmtime(&tv);
     return (command("HOLD %02d%02d%02d%02d%02d"
-       , tm->tm_year
+       , (tm->tm_year) % 100
        , tm->tm_mon+1
        , tm->tm_mday
        , tm->tm_hour