Browse Source

Change default long date/time formats (issue 50)

tags/v0.9.0
James Moger 12 years ago
parent
commit
a4ed6d719c

+ 1
- 1
distrib/gitblit.properties View File

@@ -253,7 +253,7 @@ web.datestampLongFormat = EEEE, MMMM d, yyyy
# <http://download.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html>
#
# SINCE 0.5.0
web.datetimestampLongFormat = EEEE, MMMM d, yyyy h:mm a z
web.datetimestampLongFormat = EEEE, MMMM d, yyyy HH:mm Z
# Mount URL parameters
# This setting controls if pretty or parameter URLs are used.

+ 4
- 0
docs/04_releases.mkd View File

@@ -4,6 +4,10 @@
**%VERSION%** ([go](http://code.google.com/p/gitblit/downloads/detail?name=%GO%) | [war](http://code.google.com/p/gitblit/downloads/detail?name=%WAR%) | [express](http://code.google.com/p/gitblit/downloads/detail?name=%EXPRESS%) | [fedclient](http://code.google.com/p/gitblit/downloads/detail?name=%FEDCLIENT%) | [manager](http://code.google.com/p/gitblit/downloads/detail?name=%MANAGER%) | [api](http://code.google.com/p/gitblit/downloads/detail?name=%API%)) based on [%JGIT%][jgit] &nbsp; *released %BUILDDATE%*
#### changes
- web.datetimestampLongFormat from *EEEE, MMMM d, yyyy h:mm a z* to *EEEE, MMMM d, yyyy HH:mm Z* (issue 50)
#### additions
- Allow relinking HEAD to a branch or a tag (Github/plm)

+ 1
- 1
src/com/gitblit/wicket/WicketUtils.java View File

@@ -492,7 +492,7 @@ public class WicketUtils {
public static Label createTimestampLabel(String wicketId, Date date, TimeZone timeZone) {
String format = GitBlit.getString(Keys.web.datetimestampLongFormat,
"EEEE, MMMM d, yyyy h:mm a z");
"EEEE, MMMM d, yyyy HH:mm Z");
DateFormat df = new SimpleDateFormat(format);
if (timeZone != null) {
df.setTimeZone(timeZone);

+ 1
- 1
src/com/gitblit/wicket/pages/BlamePage.java View File

@@ -66,7 +66,7 @@ public class BlamePage extends RepositoryPage {
add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, blobPath, objectId));
String format = GitBlit.getString(Keys.web.datetimestampLongFormat,
"EEEE, MMMM d, yyyy h:mm a z");
"EEEE, MMMM d, yyyy HH:mm Z");
final DateFormat df = new SimpleDateFormat(format);
df.setTimeZone(getTimeZone());
List<AnnotatedLine> lines = DiffUtils.blame(getRepository(), blobPath, objectId);

Loading…
Cancel
Save