| Summary: | Directory Web Browser: file date counting days in year, not month | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Adrian Aichner <adrian.aichner> |
| Component: | Server | Assignee: | Adrian Aichner <adrian.aichner> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ken_walker, mamacdon, simon_kaegi |
| Version: | 5.0 | Flags: | ken_walker:
review+
|
| Target Milestone: | 5.0 RC3 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Adrian Aichner
Heh. The directory listings are using "Day in year" where they intended to use "Day in month". So after January, the "day" field keeps counting up: 31, 32, ... 365. (In reply to Mark Macdonald from comment #1) > Heh. The directory listings are using "Day in year" where they intended to > use "Day in month". So after January, the "day" field keeps counting up: 31, > 32, ... 365. Yep, but the month is wrong too. I can handle this bug, if someone assigns it to me.
org.eclipse.orion.server/bundles/org.eclipse.orion.server.servlets/src/org/eclipse/orion/internal/server/servlets/file/GenericDirectoryHandler.java
public class GenericDirectoryHandler extends ServletResourceHandler<IFileStore> {
private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/DD HH:mm:ss"); //$NON-NLS-1$
should become
public class GenericDirectoryHandler extends ServletResourceHandler<IFileStore> {
private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); //$NON-NLS-1$
I have verified my solution locally on my orion server and it works fine. I would like to propose my fix for this obvious bug for inclusion in RC3 or before 5.0 goes out. See https://git.eclipse.org/r/#/c/21880/ We'll try to get this in today Adrian Merged via Gerrit |