Is anyone else experiencing a bug in the date macro?
Asked by summer.hogan:

I'm experiencing an issue where when I use the date macro and the date is wrong for "yesterday" and "today." It is very confusing and causing issues with my teams. The issue occurs when I select today's date it shows it as "yesterday" when really it is "today." Is anyone else experiencing this and have a fix for it?


Answers:
author: Diego
body: Hello [@summer.hogan](/t5/user/viewprofilepage/user-id/2985688) !

As I understand, the Date macro incorrectly displays the date if the selected date is the current day.

I tried to replicate that in my own test site with dummy content but it behaved as expected. Here are some screenshots:

**Edit Mode (Selecting Date):**
> **![Screen Shot 2020-06-04 at 15.15.45.png](https://community.atlassian.com/t5/image/serverpage/image-id/97777iFE36C63918848EF9/image-dimensions/345x260?v=v2 "Screen Shot 2020-06-04 at 15.15.45.png")**

**Edit Mode (Date Selected):**
> **![Screen Shot 2020-06-04 at 15.15.55.png](https://community.atlassian.com/t5/image/serverpage/image-id/97778iA286F26EAE7E061C/image-dimensions/352x258?v=v2 "Screen Shot 2020-06-04 at 15.15.55.png")**

**View Mode:**
> **![Screen Shot 2020-06-04 at 15.17.19.png](https://community.atlassian.com/t5/image/serverpage/image-id/97779iF676691520744D92/image-dimensions/345x258?v=v2 "Screen Shot 2020-06-04 at 15.17.19.png")**

With this in mind, I would like to ask a few questions:

> 1. *Would it be possible for you to share some screenshots of the behaviors that you are facing?*
> 2. *Is the date macro the native Confluence Date picker or is it part of a third-party plugin?*

When taking the screenshots, please be careful not to disclose any sensitive information with it. Here in our Community everyone can see everything.

Let us hear from you!

Let us hear from you!

comments: author: summer.hogan
body: Hi [@Diego](/t5/user/viewprofilepage/user-id/1188952)

Thanks for answering my question. First, I'm not sure you are understanding my issue so let me explain further. First, I am using the date macro (see image #1). While trying to replicate the issue to take screenshots I discovered when I add the dates, they work fine. But when I add the action item checkbox next to the date and select yesterdays date, it displays the text "2 days ago" and when I select today's date it displays the text "Yesterday" and when I select tomorrow's date it displays the text "Today" (see images #2, #3, and #4). I hope this helps explain the issue.

**Image #1 - Date macro**

![2020-06-04_12-45-38.png](https://community.atlassian.com/t5/image/serverpage/image-id/97792iCCA144D0324DEED8/image-size/large?v=v2&px=999 "2020-06-04_12-45-38.png")

**Image #2 - Select yesterdays date and displays "2 days ago" should be "yesterday"**

![2020-06-04_13-00-20.png](https://community.atlassian.com/t5/image/serverpage/image-id/97801iEDC6DA96E02A2BE0/image-size/large?v=v2&px=999 "2020-06-04_13-00-20.png")

**Image #3 - Select today's date and displays "Yesterday" should be "today"**

**![2020-06-04_13-41-37.png](https://community.atlassian.com/t5/image/serverpage/image-id/97802i239C56A1985600C8/image-size/large?v=v2&px=999 "2020-06-04_13-41-37.png")**

**Image #4 - Select tomorrow's date and displays "Today" should be "tomorrow"**

**![2020-06-04_13-42-05.png](https://community.atlassian.com/t5/image/serverpage/image-id/97803iB0E3E9B50C79E859/image-size/large?v=v2&px=999 "2020-06-04_13-42-05.png")**


author: summer.hogan
body: Hi [@Diego](/t5/user/viewprofilepage/user-id/1188952)

Were you able to replicate my issue? Please let me know as it is driving me a bit crazy!

Thanks,

Summer Hogan


author: Bridget Maloney
body: Hi [@summer.hogan](/t5/user/viewprofilepage/user-id/2985688)

It looks like [@Diego](/t5/user/viewprofilepage/user-id/1188952)'s original answer was marked as "answer accepted" even though it doesn't appear to help solve the issue - are you able to unaccept it? That may help to trigger a response from him.

We are having the exact same problem as you with the dates, fwiw. We have attributed this to being in the Eastern time zone and we're assuming Atlassian's servers are in Australia with their main offices.

Just curious - do you think this time zone theory could apply to you too? That could explain why Diego was unable to recreate it?

Thanks,

Bridget


author: summer.hogan
body: Hi [@Bridget Maloney](/t5/user/viewprofilepage/user-id/1406767)

Yes, I was able to mark the answer as Unaccepted now so maybe that will trigger [@Diego](/t5/user/viewprofilepage/user-id/1188952) to see my response. This is still an issue for us. Yes, it could be a timezone issue as that does make sense and would explain the issue. I'll have to ask our admin to look at this. I'm hoping [@Diego](/t5/user/viewprofilepage/user-id/1188952) can confirm his timezone and maybe confirm how I put in a request to have it based on the timezone of the Jira account. Thanks so much for your response!

Summer Hogan


Tags: cloud

date

macro