We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bafcfd4 commit 3ee9a99Copy full SHA for 3ee9a99
commons/app/src/main/java/fr/free/nrw/commons/upload/UploadController.java
@@ -136,7 +136,8 @@ protected Contribution doInBackground(Void... voids /* stare into you */) {
136
if(cursor != null && cursor.getCount() != 0) {
137
cursor.moveToFirst();
138
Date dateCreated = new Date(cursor.getLong(0));
139
- if(dateCreated.equals(new Date(0))) {
+ Date epochStart = new Date(0);
140
+ if(dateCreated.equals(epochStart) || dateCreated.before(epochStart)) {
141
// If date is incorrect (1st second of unix time) then set it to the current date
142
dateCreated = new Date();
143
}
0 commit comments