[INTERPRETER]
* NEW: Formatting a date with gb.GeneralDate now always prints the time. * BUG: The time part of a formatted date is never automatically removed anymore. git-svn-id: svn://localhost/gambas/trunk@4464 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
b075a2e026
commit
9e30b521c4
1 changed files with 1 additions and 3 deletions
|
@ -1193,7 +1193,7 @@ static bool add_date_token(DATE_SERIAL *date, char *token, int count)
|
|||
|
||||
date_token = *token == 'd' || *token == 'm' || *token == 'y';
|
||||
|
||||
if ((date_token && DATE_SERIAL_has_no_date(date)) || (!date_token && DATE_SERIAL_has_no_time(date)))
|
||||
if ((date_token && DATE_SERIAL_has_no_date(date))) // || (!date_token && DATE_SERIAL_has_no_time(date)))
|
||||
{
|
||||
*token = 0;
|
||||
return TRUE;
|
||||
|
@ -1301,8 +1301,6 @@ bool LOCAL_format_date(const DATE_SERIAL *date, int fmt_type, const char *fmt, i
|
|||
}
|
||||
fmt = local_current->long_time;
|
||||
}
|
||||
else if (date->hour == 0 && date->min == 0 && date->sec == 0)
|
||||
fmt = local_current->short_date;
|
||||
else
|
||||
fmt = local_current->general_date;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue