Comments (6)
Well, therefore I'm testing :)
Your libs are great, I'm using all three dialogs in my app now ;D
from recurpickerlib.
What are the recurrence rules? This is probably a bug.
from recurpickerlib.
Just daily.
from recurpickerlib.
I didn't manage to reproduce your output. What was the start date of the recurrence and in what time zone?
from recurpickerlib.
@Test
fun testDailyRecurrences() {
val recurrence = Recurrence(LocalDate.now().minusDays(5).atStartOfDay(ZoneId.systemDefault()).toInstant().toEpochMilli(), Recurrence.DAILY)
val missedRecurrences = recurrence.findRecurrencesBetween(0, System.currentTimeMillis())
assertThat(missedRecurrences, notNullValue())
val nextRecurrence = recurrence.findRecurrences(System.currentTimeMillis().inc(), 1).first()
assertThat(nextRecurrence, notNullValue())
assertThat(missedRecurrences.size, `is`(5))
assertNotEquals("lastRecurrence: ${missedRecurrences.last()} - nextRecurrence $nextRecurrence", missedRecurrences.last(), nextRecurrence)
}
from recurpickerlib.
Thanks, I fixed it.
This is actually a kind of problem I feared would happen since the library was developed with more focus on UI than on the recurrence computation system, which should actually have been done by another library made for that. But I didn't find any at the time. So I made one that's "good enough", without a lot of testing, since recurring events is often a secondary feature in apps anyway.
from recurpickerlib.
Related Issues (20)
- Outdated documentation
- Simplify documentation for retriving recurrence index HOT 1
- NullPointerException when not setting date formatter HOT 1
- Compatibility with material themes HOT 13
- Determine how many days are selected for weekly repetition. HOT 2
- Listeners instead of TargetFragment? HOT 1
- Recurrence#findRecurrences(long fromDate, long toDate) HOT 1
- RecurrencePickerDialog showing different values in textview and datepicker HOT 1
- Forgot to push v1.6.0 to public repo? HOT 2
- Computation error in findRecurrences HOT 1
- Animating Dialog HOT 1
- Recurrence At a specific date of month HOT 1
- Not able to use library with java project HOT 2
- Ability to set Hours, Minutes, Seconds HOT 2
- Recurrence picker dialog not working on API 15 HOT 1
- Recurrence Object and Serialization to/from non-Android HOT 2
- Recurrence(Recurrence.Period.WEEKLY) String Invalid HOT 1
- CustomPicker does not conform to Settings specified in RecurrencePickerSettings HOT 1
- Day selection UI displays incorrectly in small screens HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recurpickerlib.