NightDev Community Forums

$Time variable offset formatting


#1

I am trying to get my !time command to match in game server time
So far I have !servertime $(time US/Central “HH:mm”) to get me to my 24 hour clock
But my server time is -2hrs my time (ex. my time is 18:47, server time is 16:47)

I’ve been messing around with the formatting from the moment.js doc to figure out if I can offset that time by 2 hours, I just can’t get it to work.
Any tips? Is this even possible?


#2

Try using the Pacific Time Zone, which is 2 hours earlier than the Central Time Zone:

$(time US/Pacific "HH:mm")

#3

Genius lmao thank you


closed #4

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.