Replit not showing correct time

replit not showing correct time

Replit Profile:

Could you provide some more information about your issue? Is this in the UI somewhere?

I’m going to have a guess and say your using new Date(), or some equivalent in some language, that returns the current date. Bear in mind this is the date on Replit’s virtual machines, not your machine, which are in America (and some in too India now). As a result, the day and date format might not match your own. To fix this, you should use or equivalent method which returns the current time since the epoch milliseconds, then if this is a web server, convert to locale date, otherwise, you will have to figure the conversion out yourself server-side.