windchill official code bug
---
**Issue in `TimelineHistoryHelper.getLatestModifyTimestamp`**
The `Timestamp timestamp = Timestamp.valueOf("0000-00-00 00:00:00.000000000");` line consistently triggers an error.
Code snippet:
```java
protected static Timestamp getLatestModifyTimestamp(Persistable paramPersistable) throws WTException {
Timestamp timestamp = Timestamp.valueOf("0000-00-00 00:00:00.000000000");
ArrayList<LifeCycleManaged> arrayList = new ArrayList();
arrayList.add((LifeCycleManaged) paramPersistable);
HashMap hashMap = LifeCycleHelper.service.getHistoryForIterations(arrayList);
if (!hashMap.isEmpty()) {
ArrayList<LifeCycleHistory> arrayList1 = (ArrayList) hashMap.values().toArray()[0];
for (byte b = 0; b < arrayList1.size(); b++) {
LifeCycleHistory lifeCycleHistory = arrayList1.get(b);
if (lifeCycleHistory.getModifyTimestamp().after(timestamp))
timestamp = lifeCycleHistory.getModifyTimestamp();
}
}
return timestamp;
}
```
**How to resolve the above issue**

