The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Date format - Insight

Mariusz Piotrowski
Contributor
January 7, 2021

Hello,

I have found a strange behavior. We are getting Insight date and time attribute to prefill date picker using SR Behaviors. The strange thing is that prefilled dates get +1h for dates in winter time and +2h in summer time. How to get raw time from Insight?

Code is very simple:

String format = "dd/MMM/yy HH:mm a";
SimpleDateFormat formater = new SimpleDateFormat(format);
String formatedDate = formater.format(testDateAttributeBean);

log.warn formatedDate

When I logged .toTimestamp() it showed correct date with +00:00.

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events