* Fix some caching issues

This commit is contained in:
RobThree
2017-11-06 18:37:49 +01:00
parent c9bfe0519a
commit b1ecc9afbc
3 changed files with 9 additions and 2 deletions
@@ -6,7 +6,7 @@ class ConvertUnixTimeDotComTimeProvider implements ITimeProvider
{
public function getTime() {
$json = @json_decode(
@file_get_contents('http://www.convert-unix-time.com/api?timestamp=now')
@file_get_contents('http://www.convert-unix-time.com/api?timestamp=now&r=' . uniqid(null, true))
);
if ($json === null || !is_int($json->timestamp))
throw new \TimeException('Unable to retrieve time from convert-unix-time.com');