mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-25 08:56:00 +02:00
2020-01-02 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the 'rivwebcapi' validate_tm() function that caused dates containing '29 February' to always fail regardless of leap-year validity.
This commit is contained in:
parent
4c48bc1b52
commit
d1125fc6a9
@ -19379,3 +19379,7 @@
|
||||
* Tweaked the 'LogLineBox::mouseMoveEvent()' method in rdairplay(1)
|
||||
to require a cursor movement of at least 20 pixels before generating
|
||||
a cart drag.
|
||||
2020-01-02 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a bug in the 'rivwebcapi' validate_tm() function that caused
|
||||
dates containing '29 February' to always fail regardless of leap-year
|
||||
validity.
|
||||
|
@ -2,7 +2,7 @@
|
||||
*
|
||||
* Common Utility Functions for the Rivendell Access Library
|
||||
*
|
||||
* (C) Copyright 2015 Fred Gleason <fredg@paravelsystems.com>
|
||||
* (C) Copyright 2015-2019 Fred Gleason <fredg@paravelsystems.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
@ -234,7 +234,9 @@ int validate_tm (struct tm *tmptr)
|
||||
leap = 1;
|
||||
else
|
||||
leap = 0;
|
||||
if (!leap)
|
||||
if (leap)
|
||||
monthdays[1]=29;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
if ( (tmptr->tm_mday > monthdays[tmptr->tm_mon]) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user