Added localized time interface for displaying correct time of content type cache update.

JI-53
pull/38/head
thomasmars 2017-02-22 16:20:09 +01:00
parent 58cbfc7f0c
commit f556cde385
1 changed files with 8 additions and 1 deletions

View File

@ -586,6 +586,13 @@ interface H5PFrameworkInterface {
* containing the new content type cache that should replace the old one. * containing the new content type cache that should replace the old one.
*/ */
public function replaceContentTypeCache($contentTypeCache); public function replaceContentTypeCache($contentTypeCache);
/**
* Get timestamp of time at user
*
* @return int Timestamp of localized time
*/
public function getCurrentUserTime();
} }
/** /**
@ -2808,7 +2815,7 @@ class H5PCore {
// Inform of the changes and update timestamp // Inform of the changes and update timestamp
$interface->setInfoMessage($interface->t('Library cache was successfully updated!')); $interface->setInfoMessage($interface->t('Library cache was successfully updated!'));
$interface->setOption('content_type_cache_updated_at', time()); $interface->setOption('content_type_cache_updated_at', $interface->getCurrentUserTime());
return TRUE; return TRUE;
} }
} }