mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
fix timezone of completed date
This commit is contained in:
parent
ee36e83cbb
commit
7e01d1ae6a
@ -459,7 +459,7 @@ class InfologApp extends EgwApp
|
||||
break;
|
||||
|
||||
case 'info_datecompleted':
|
||||
completed = !datecompleted.get_value();
|
||||
completed = !!datecompleted.get_value();
|
||||
if (completed !== (old_status === 'done' || old_status === 'billed'))
|
||||
{
|
||||
status.set_value(completed ? 'done' : 'not-started');
|
||||
@ -476,7 +476,9 @@ class InfologApp extends EgwApp
|
||||
}
|
||||
else if (completed && datecompleted && !datecompleted.get_value())
|
||||
{
|
||||
datecompleted.set_value(new Date());
|
||||
const now = new Date();
|
||||
const localtime = new Date(now.valueOf()-now.getTimezoneOffset()*60000);
|
||||
datecompleted.set_value(localtime);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user