How do I change the PDF export for date picker

Our team is standardizing on the built in Date Picker widget so we ensure normalized dates throughout the wiki (i.e. no more June 30th, 6/30, 30/6, 6/30/15 just a nice simple 30 Jun 2015). Unfortunately when exported to PDF this looks really clunky with the widget showing a dark gray box around it.

I'm spelunking through the PDF export stylesheet docs; is there a way to alter the export look/feel for macros like this?

1 answer

1 accepted

0 votes
Accepted answer

Customize this macro with the following CSS style in your pdf space stylesheet (the example below cancels any formatting and shows a normal format):

.wiki-content time{
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-color: #FFFFFF !important;
  border: 0px solid #FFFFFF  !important;
  border-radius: 0px !important;
  padding: 0 0px 0 0px  !important;
  white-space: none !important;

Thank you Benoit, that is perfect!

Really nice solution! And thanks for asking the question; this was one of those things I didn't know I cared about until I saw the better result.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

476 views 3 18
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you