Skip to content

fix: keep timestamp logic on parse errors#20

Open
lijsh wants to merge 1 commit intomalinkang:mainfrom
lijsh:codex/fix-str-to-timestamp
Open

fix: keep timestamp logic on parse errors#20
lijsh wants to merge 1 commit intomalinkang:mainfrom
lijsh:codex/fix-str-to-timestamp

Conversation

@lijsh
Copy link

@lijsh lijsh commented Feb 4, 2026

Summary

  • Keep original timestamp return type while handling parse errors
  • Return 0 when input is empty or unparseable, and log a warning

Testing

  • Not run (not provided)

@lijsh lijsh force-pushed the codex/fix-str-to-timestamp branch from 1247368 to d24c448 Compare February 4, 2026 04:56
@lijsh
Copy link
Author

lijsh commented Feb 4, 2026

Note: the workflow installs the PyPI package \douban2notion\ from requirements.txt, so this fix will take effect after a new package version is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant