Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Date format - Insight

Mariusz Piotrowski 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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events