Closed bouiboui closed 6 years ago
This is a quick and dirty solution to the issue #39.
It takes the global (ugghh... I know) unix timestamp $.livestampTimeFrom and shifts the date accordingly. A basic implementation in PHP would be:
<script type="text/javascript"> $.livestampTimeFrom = <?=time()?>; </script>
This is far from ideal as I haven't found an elegant solution to add a local parameter to livestamp, but it seems to work.
Several tests later on different servers, 12333e5 seems to be the best solution to yield correct results.
This is a quick and dirty solution to the issue #39.
It takes the global (ugghh... I know) unix timestamp $.livestampTimeFrom and shifts the date accordingly. A basic implementation in PHP would be:
This is far from ideal as I haven't found an elegant solution to add a local parameter to livestamp, but it seems to work.