Skip to content

Commit e4d124f

Browse files
authored
Fix calendar handling of pre-1970 birthdates
Re submit PR #224, all credits to @TristanDonze. I cannot do a build right now, but I can more than happily test a beta build if needed.
1 parent fb56145 commit e4d124f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

app/src/main/kotlin/org/fossify/calendar/activities/MainActivity.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -923,9 +923,6 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
923923

924924
val formatter = SimpleDateFormat(format, Locale.getDefault())
925925
val date = formatter.parse(birthdayAnniversary)
926-
if (date.year < 70) {
927-
date.year = 70
928-
}
929926

930927
val timestamp = date.time / 1000L
931928
val lastUpdated = System.currentTimeMillis()

0 commit comments

Comments
 (0)