You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "TvT (JIRA)" <ji...@apache.org> on 2016/08/29 14:49:20 UTC
[jira] [Created] (DIRAPI-284) DateUtils throws an exception for
certain timestamps
TvT created DIRAPI-284:
--------------------------
Summary: DateUtils throws an exception for certain timestamps
Key: DIRAPI-284
URL: https://issues.apache.org/jira/browse/DIRAPI-284
Project: Directory Client API
Issue Type: Bug
Affects Versions: 1.0.0-RC1
Environment: All
Reporter: TvT
The DateUtils class can't handle certain timestamps.
The following code
_DateUtils.getDate("9223372036854775807");_
throws an "java.lang.RuntimeException: java.text.ParseException: ERR_04363 Invalid Time too short, expected field 'fraction of second' or 'timezone'."
The value in [microsofts active directory |https://msdn.microsoft.com/en-us/library/ms675098%28v=vs.85%29.aspx]indicates that e.g. an account never expires...
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)