entry.setTextTime(TimeUtil.formatDate(new Date(tstamp)));
entry.setTextTime(SVNTimeUtil.formatDate(new Date(tstamp)));
    private void restoreFile(SVNDirectory dir, String name) throws SVNException {        if (!myIsRestore) {            return;        }        SVNProperties props = dir.getProperties(name, false);        SVNEntry entry = dir.getEntries().getEntry(name, true);        boolean special = props.getPropertyValue(SVNProperty.SPECIAL) != null;        File src = dir.getBaseFile(name, false);        File dst = dir.getFile(name);        SVNTranslator.translate(dir, name, SVNFileUtil.getBasePath(src),                SVNFileUtil.getBasePath(dst), true, true);        dir.markResolved(name, true, false);        boolean executable = props.getPropertyValue(SVNProperty.EXECUTABLE) != null;        boolean needsLock = props.getPropertyValue(SVNProperty.NEEDS_LOCK) != null;        if (executable) {            SVNFileUtil.setExecutable(dst, true);        }        if (needsLock) {            SVNFileUtil.setReadonly(dst, entry.getLockToken() == null);        }        long tstamp = dst.lastModified();        if (myWCAccess.getOptions().isUseCommitTimes() && !special) {            entry.setTextTime(entry.getCommittedDate());            tstamp = TimeUtil.parseDate(entry.getCommittedDate()).getTime();            dst.setLastModified(tstamp);        } else {            entry.setTextTime(TimeUtil.formatDate(new Date(tstamp)));        }        dir.getEntries().save(false);        myWCAccess.handleEvent(SVNEventFactory.createRestoredEvent(myWCAccess,                dir, entry));    }