Can change time zone?


#1

Hi, I have a question, I host a discord bot in Glitch and one of the options is "What time is it? I’m from France and at the moment is here 17:55 and my bot show 15:55 Can I change time zone?


#2

You can use a library like Moment to convert server time to local: https://momentjs.com/timezone/


#3

I install this to the project but how to this working? how config this?


#4

Their docs are very helpful: https://momentjs.com/timezone/docs/


#5

Still I can’t set it. I think it’s too complicated for me :smiley:


#6

You can’t change the timezone of the project.
But as said by Gareth using moment you can convert the timezone to the required timezone.
You can have look at the link gareth provided.