Skip to content

fix: keep timestamp logic on parse errors#20

Merged
malinkang merged 4 commits intomalinkang:mainfrom
lijsh:codex/fix-str-to-timestamp
Mar 18, 2026
Merged

fix: keep timestamp logic on parse errors#20
malinkang merged 4 commits intomalinkang:mainfrom
lijsh:codex/fix-str-to-timestamp

Conversation

@lijsh
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor 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.

@malinkang malinkang merged commit 8a9fe8f into malinkang:main Mar 18, 2026
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.

2 participants