[borderline] discrepancy between relative times
October 06, 2013, 05:07:50 am
emanuele
Global Moderator
There is a small discrepancy between relative times calculated by php and js. Why? I used round in js and I think the php uses floor (even though I thought I changed it to match, but maybe I changed and then reverted the change in order to ask for opinions and then I forgot to ask lol). So: what do you prefer? floor or round?
Re: [borderline] discrepancy between relative times
Reply #1 – October 06, 2013, 06:06:03 am
I think round is a bit more precise but I really don't care that much..
Re: [borderline] discrepancy between relative times
Reply #3 – November 29, 2013, 04:49:55 pm
emanuele
Global Moderator
Thinking about the errors when the user offset is wrong, there is to consider that is most likely wrong for guests too, so I think we should send out a "representation" of the server time and use that to calculate the relative times via javascript.
Re: [borderline] discrepancy between relative times
Reply #4 – December 19, 2013, 05:15:43 am
emanuele
Global Moderator
That one should be now solved.