im using jira rest api to create/edit issues. when updating datetime type fields its giving an error somthing like
"Error parsing time: 2013-06-17T00:00:00+0000"
datetime required ISO8601 format, so i'm using it, but keep getting this error
how can i do this? plz help
thanks in advance
The format for ISO 8601:
YYYY-MM-DDThh:mm:ss.sTZD
Try using 2013-06-17T00:00:00.0+0000
instead of 2013-06-17T00:00:00+0000
I have to object, the date format is *not* ISO 8601. The timezone offset is incorrect. The date time is in extended format but the tz offset is not. Thus, the value is illegal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can we file a bug about that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I just stumbled across this but I think what is happening is that you are returning a date field and so all the other values for hours seconds AND the time zone offset are all zero. If you need the time zone offset to be correct, you need to change the custom field type (or field type) to be one that has date and time as opposed to just date.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For Python Developers:
import datetime
datetime.datetime.now().astimezone().replace(microsecond=0).isoformat()
>>> 2020-03-20T14:31:43+13:00
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
static final String JIRA_MISTERY_DATE_FORMAT = "yyyy-MM-dd hh:mm a";
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i tried this format, but problem persists, im using php thanx for the help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.