Format time zone

Asked Mar 21, 2021·4 replies·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

How do i remove the EDT GMT-04:00 from this time command

!addcom -cd=5 time $(time US/Eastern “MMMM Do YYYY, h:mm:ss A”)

I want it to show the day, month & time only like this

Sunday March 21st 2021, 6:48:43 am

4 replies

Hey @Dusky Sloth!

You're using the wrong quotation marks... Use " instead of “”:

$(time US/Eastern "MMMM Do YYYY, h:mm:ss A")

But this would show the date like March 21st 2021, 6:48:43 AM, by following the documentation, that's how you should go about it to get the result you want:

$(time US/Eastern "dddd MMMM Do YYYY, h:mm:ss a")
Polar Cat said:
$(time US/Eastern "dddd MMMM Do YYYY, h:mm:ss a")

I’m still having the same problem

F2357120-0813-4D21-8D27-ECE9F4E734C3.jpeg

You must make a mistake when you copy/paste and it changes the quotation marks I guess, because it works just fine on my side:

917cf486d68aebfd49969c404fa420be3d656053.png
Polar Cat said:
$(time US/Eastern "dddd MMMM Do YYYY, h:mm:ss a")

Got it to work Thank You Emily!