Skip to content
Snippets Groups Projects
Commit 58e3f6b1 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

encode_timeval: set timevalue to date/100 if day = 0

parent a29e8a31
No related branches found
No related tags found
No related merge requests found
......@@ -1062,7 +1062,12 @@ double encode_timeval(int date, int time, TAXIS *taxis)
{
if ( taxis->unit == TUNIT_MONTH )
{
timevalue = date/100 + 0.5;
int year, month, day;
decode_date(date, &year, &month, &day);
if ( day == 0 )
timevalue = date/100;
else
timevalue = date/100 + 0.5;
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment