byteclubfr / todotxt

Todo.txt parser/serializer for node
ISC License
6 stars 4 forks source link

Pass timezone to parse(), stringify() and item() #3

Open evanp opened 6 years ago

evanp commented 6 years ago

It might be nice to add a way for parse(), stringify() and item() to take a separate timezone argument, so if you're doing development where the user's timezone isn't the same as the system timezone (say, for a Web application), you can pass the user's timezone in.

Maybe a second argument to each of these methods, like an options object? That way if we have other parse/stringify options in the future, they can be added without a problem.

naholyr commented 6 years ago

:+1: for an options object