Skip to content

Commit 5c6ab3b

Browse files
misaochanmaskaravivek
authored andcommitted
Fix date template (#3226)
* Add Traceur for getting meaningful RxJava stack traces (#1832) * Hotfix for overwrite issue in 2.8.0 (#1838) * This solution is an hotfix for overrite issue came back on 2.8.0 version. What I did is checking the extension, and if it is null, adding .jpg suffix. Because commons files always have suffixes, and we should compare file names after adding suffixes. Othervise overrides are possible. * Check if file title includes an extension already, by checking if is there any dot in it. * Fix logic error * Add uncovered tests * Remove unecessary line breaks * Make Javadocs more explicit * Versioning and changelog for v2.8.2 (#1842) * Versioning for v2.8.2 * Changelog for v2.8.2 * Fix data template for other source
1 parent dd76110 commit 5c6ab3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/fr/free/nrw/commons/contributions/Contribution.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public class Contribution extends Media {
2828
//{{According to EXIF data|2009-01-09}}
2929
private static final String TEMPLATE_DATE_ACC_TO_EXIF = "{{According to EXIF data|%s}}";
3030

31-
//{{date|2009|1|9}} → 9 January 2009
32-
private static final String TEMPLATE_DATA_OTHER_SOURCE = "{{date|%s}}";
31+
//2009-01-09 → 9 January 2009
32+
private static final String TEMPLATE_DATA_OTHER_SOURCE = "%s";
3333

3434
public static Creator<Contribution> CREATOR = new Creator<Contribution>() {
3535
@Override

0 commit comments

Comments
 (0)