Version 18.32.1

This commit is contained in:
Antonio Cañas Vargas 2019-01-12 10:24:08 +01:00
parent adbc363546
commit 0e917c6244
3 changed files with 14 additions and 6 deletions

View File

@ -1154,7 +1154,7 @@ a:hover /* Default ==> underlined */
}
.CON_USR_WIDE
{
width:340px;
width:360px;
text-align:left;
vertical-align:middle;
}
@ -1167,7 +1167,7 @@ a:hover /* Default ==> underlined */
}
.CON_NAME_WIDE
{
max-width:340px;
max-width:360px;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;

View File

@ -44,6 +44,9 @@ var countClockConnected = 0;
// Dat_FORMAT_DD_MONTH_YYYY = 1
// Dat_FORMAT_MONTH_DD_YYYY = 2
// separator is HTML code to write between date and time
// StrToday is a string in current language ('today', 'hoy'...)
// WriteDateOnSameDay = false ==> don't write date if it's the same day than the last call
// WriteWeekDay = true ==> write day of the week ('monday', 'tuesday'...)
// WriteHMS = 3 least significant bits for hour, minute and second
function writeLocalDateHMSFromUTC (id,TimeUTC,DateFormat,Separator,StrToday,
@ -74,15 +77,19 @@ function writeLocalDateHMSFromUTC (id,TimeUTC,DateFormat,Separator,StrToday,
Yea = d.getFullYear();
Mon = d.getMonth() + 1;
Day = d.getDate();
if (WriteDateOnSameDay)
WriteDate = true;
// Check to see if the last date has been initialized
else if (typeof writeLocalDateHMSFromUTC.lastd == 'undefined') // Static variable to remember current date for the next call
// Not initialized
WriteDate = true;
else
WriteDate = (Yea != writeLocalDateHMSFromUTC.lastd.getFullYear() ||
Mon != writeLocalDateHMSFromUTC.lastd.getMonth() + 1 ||
Day != writeLocalDateHMSFromUTC.lastd.getDate())
writeLocalDateHMSFromUTC.lastd = d; // Static variable to remember current date for the next call
writeLocalDateHMSFromUTC.lastd = d; // Update last date for the next call
/* Set date */
if (WriteDate) {

View File

@ -367,10 +367,11 @@ En OpenSWAD:
ps2pdf source.ps destination.pdf
*/
#define Log_PLATFORM_VERSION "SWAD 18.32 (2019-01-12)"
#define Log_PLATFORM_VERSION "SWAD 18.32.1 (2019-01-12)"
#define CSS_FILE "swad18.32.css"
#define JS_FILE "swad17.17.1.js"
#define JS_FILE "swad18.32.1.js"
/*
Version 18.32.1: Jan 12, 2019 Fixed bug in JavaScript related to writing dates. (239320 lines)
Version 18.32: Jan 12, 2019 Code refactoring related to icons. (239311 lines)
Version 18.31.6: Jan 11, 2019 Fixed bug in user administration. (239587 lines)
Version 18.31.5: Jan 11, 2019 Fixed bug in link to my courses. (239583 lines)