Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue #51 #199

Merged
merged 7 commits into from
Feb 3, 2015
Merged

Conversation

RogerMathisen
Copy link
Contributor

Fix for issue #51
Does probably also fix issue #86.

- Removed the YEAR_UPPER_LIMIT static final variable, and replaced usages of it with String.valueOf(Calendar.getInstance(TimeZone.getTimeZone("GMT")).get(Calendar.YEAR) )). 
This is because if the WayBack instance is up and running over between years. The new year will not be selectable.

- Removed the static definition of the String array months, containing the shorthand name for the months in a year, as it was it was hardcoded to use the english abbreviations.
The new version relies on the default Locale settings to supply the shorthand names.

- Removed the array containing the number of days in each month in the defined year interval 1972 - 2032, and altered the getDaysInMonthBound() to use Calendar directly 
instead of relying on the pregenerated array.

- Removed the SSE_1996 variable with SSE_YEAR_LOWER_LIMIT since the start year is no longer hardcoded. The value of the new variable is calculated at Class instansiation
based on the configured start year.

- Altered the dateStrToDate() function. The return value under ParseException must be multiplied by 1000 to convert from the internal second since Epoch to Date() milliseconds.
Also we use SSE_YEAR_LOWER_LIMIT instead of SSE_1996.

- Altered the earliestTimestamp() function to SSE_YEAR_LOWER_LIMIT instead of SSE_1996.
…lass, instead of the hardcoded value of 1996.

- In UI-header.jsp, uses the endYear set in the org.archive.wayback.util.Timestamp class to get the current year.
Set the minimum year that is handled by this server
-->
<bean name="minimumYearAlloved" class="org.archive.wayback.util.Timestamp">
<property name="startYear" value="1998" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this default to 1996?

- Added comment for bean to set default start date for "org.archive.wayback.util.Timestamp"
@kris-sigur kris-sigur added this to the 2.0.1 Bugfix Release milestone Feb 2, 2015
johnerikhalse added a commit that referenced this pull request Feb 3, 2015
@johnerikhalse johnerikhalse merged commit e6195c1 into iipc:master Feb 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants