We are a multi-national company and I am going through the possibility of having our default home page be confluence. Currently in our html default home page it will show each region's local time. I have tried to write a macro to do this but got stuck along the way. The following code will display the local timezone:
But I cannot figure out how to get it to display the various other timezones. I have seen that there is a tz parameter for dateFormatter but I could not find any examples of usage.
I was bored, so I decided to try it out. It's a bit of a hack and it's maybe not the easiest way to do it, but at least it works
Yes, you need to create a new user macro (You must be an administrator; click the Gear icon at the top of the screen, then General Configuration, enter your password, and find "User Macros" on the left side of the screen). You just give the user macro any name you want (no spaces) and a title (what will be displayed in the macro editor). If you want so that not everybody can see it, choose the visibility under the name. Everything else can stay blank/as it is. Once you save it, the macro should be available to insert on a page.
What portions? Not sure I understand the question. Ideally I would want a macro that takes as a single parameter a time zone, and outputs the current time in that time zone. I have that all but I cannot find a good example of setting the timezone in dateFormatter.
Hi my Community friends! For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs