Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unsupport chinese date format #74

Open
wolfand11 opened this issue Oct 19, 2020 · 3 comments
Open

unsupport chinese date format #74

wolfand11 opened this issue Oct 19, 2020 · 3 comments

Comments

@wolfand11
Copy link

error stack as below

signal(error ("Invalid date: 2017-09-26 周二"))
error("Invalid date: %s" "2017-09-26 周二")
date-to-time("2017-09-26 周二")
org-static-blog-get-date("d:/Documents/MyProject/......")
org-static-blog-get-post-public-path("d:/Documents/MyProject/......")
org-static-blog-matching-publish-filename("d:/Documents/MyProject/......")
org-static-blog-needs-publishing-p("d:/Documents/MyProject/......")
org-static-blog-publish(nil)

@bastibe
Copy link
Owner

bastibe commented Oct 22, 2020

Could you provide a bit more detail of how this error is triggered and how you configured Emacs?

@wolfand11
Copy link
Author

wolfand11 commented Dec 17, 2020

when i export my blog,the error appear.
and i invoke date-to-time("2017-09-26 周二") directly, the error appear too.

my blog content is as follows:
#+TITLE: Physically Based Rendering
#+DATE: <2018-04-10 周二>
#+TAGS: graphics, pbr, lighting model
#+LAYOUT: post
#+CATEGORIES: graphics
#+OPTIONS: ^:{}
#+OPTIONS: \n:t

Physically Based Rendering note.
#+BEGIN_HTML

#+END_HTML

@bastibe
Copy link
Owner

bastibe commented Dec 18, 2020

I think the #+Date property expects an ISO date of the form <2020-02-02 01:45>.

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

No branches or pull requests

2 participants