diff --git a/swad_changelog.h b/swad_changelog.h index 22a3297eb..6e3596f2f 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -470,10 +470,11 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - * En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 19.16.2 (2019-09-26)" +#define Log_PLATFORM_VERSION "SWAD 19.16.3 (2019-09-27)" #define CSS_FILE "swad19.15.css" #define JS_FILE "swad19.15.js" /* + Version 19.16.3: Sep 27, 2019 Code refactoring in game dates. (246414 lines) Version 19.16.2: Sep 26, 2019 Fixed bugs in edition of games. Changed listing of games and surveys. (246422 lines) Version 19.16.1: Sep 26, 2019 Code refactoring in edition of games. (246416 lines) diff --git a/swad_game.c b/swad_game.c index 11aaf4a6f..140792578 100644 --- a/swad_game.c +++ b/swad_game.c @@ -378,6 +378,7 @@ void Gam_ShowOneGame (long GamCod, char *Anchor = NULL; static unsigned UniqueId = 0; struct Game Game; + Dat_StartEndTime_t StartEndTime; char Txt[Cns_MAX_BYTES_TEXT + 1]; /***** Start box *****/ @@ -414,40 +415,29 @@ void Gam_ShowOneGame (long GamCod, fprintf (Gbl.F.Out,""); } - /***** Start date/time *****/ + /***** Start/end date/time *****/ UniqueId++; - fprintf (Gbl.F.Out,""); - if (Game.TimeUTC[Dat_START_TIME]) - fprintf (Gbl.F.Out,"", - UniqueId,Game.TimeUTC[Dat_START_TIME], - (unsigned) Gbl.Prefs.DateFormat,Txt_Today); - fprintf (Gbl.F.Out,""); - - /***** End date/time *****/ - fprintf (Gbl.F.Out,""); - if (Game.TimeUTC[Dat_END_TIME]) - fprintf (Gbl.F.Out,"", - UniqueId,Game.TimeUTC[Dat_END_TIME], - (unsigned) Gbl.Prefs.DateFormat,Txt_Today); - fprintf (Gbl.F.Out,""); + for (StartEndTime = (Dat_StartEndTime_t) 0; + StartEndTime <= (Dat_StartEndTime_t) (Dat_NUM_START_END_TIME - 1); + StartEndTime++) + { + fprintf (Gbl.F.Out,""); + if (Game.TimeUTC[Dat_START_TIME]) + fprintf (Gbl.F.Out,"", + (unsigned) StartEndTime,UniqueId, + Game.TimeUTC[StartEndTime], + (unsigned) Gbl.Prefs.DateFormat,Txt_Today); + fprintf (Gbl.F.Out,""); + } /***** Game title and main data *****/ fprintf (Gbl.F.Out,"