staticlibs / ccronexpr

Cron expression parsing in ANSI C
Apache License 2.0
150 stars 78 forks source link

ccronexpr_test: zero time structure #22

Closed msantos closed 5 years ago

msantos commented 5 years ago

Ensure the struct tm returned by the local version of strptime() doesn't contain garbage. Fixes the test in commit 397cada8614 on 64-bit platforms.

Also set the timezone in the example in the README.

This should fix https://github.com/staticlibs/ccronexpr/pull/21#issuecomment-476870253.

staticlibs commented 5 years ago

Thanks for the fix! I'll add LOCAL_TIME test run to CI.