Here you're using this function for something that needs to be Math.round().
Currently, if you've marked a event with a UTC int timestamp, let's say x, and convert the number to hours based on specific event time y in the future, you will not get correct results. 50 minutes past the first event having x value, will not be counted as an hour. Thus, this creates a bug.
hour 0 ----> hour 0 + 35 min - this will not show 'after 1 hour'
If you change the function to Math.round() everything is fixed.
Here you're using this function for something that needs to be Math.round(). Currently, if you've marked a event with a UTC int timestamp, let's say x, and convert the number to hours based on specific event time y in the future, you will not get correct results. 50 minutes past the first event having x value, will not be counted as an hour. Thus, this creates a bug.
hour 0 ----> hour 0 + 35 min - this will not show 'after 1 hour'
If you change the function to Math.round() everything is fixed.