4 ms·
Your server and DB are both UTC. If not, that's something you just need to fix. The server can then calculate the difference trivially. Then you no longer need
by thraxil 3y ago
Your server and DB are both UTC. If not, that's something you just need to fix. The server can then calculate the difference trivially. Then you no longer need to do anything on the client. Eg, this is what Django's timesince or timeuntil filters do: https://docs.djangoproject.com/en/4.2/ref/templates/builtins/#std-templatefilter-timesince https://docs.djangoproject.com/en/4.2/ref/templates/builtins...
- deleted 3y ago[deleted]