Merge pull request #34 from cybem/default-locale
Use the default locale for the instance of the JVM
This commit is contained in:
commit
67d0151de8
1 changed files with 3 additions and 2 deletions
|
@ -14,7 +14,8 @@
|
||||||
[get-resource find-assets create-folder wipe-public-folder copy-resources
|
[get-resource find-assets create-folder wipe-public-folder copy-resources
|
||||||
copy-resources-from-theme]]
|
copy-resources-from-theme]]
|
||||||
[cryogen-core.sitemap :as sitemap]
|
[cryogen-core.sitemap :as sitemap]
|
||||||
[cryogen-core.rss :as rss]))
|
[cryogen-core.rss :as rss])
|
||||||
|
(:import java.util.Locale))
|
||||||
|
|
||||||
(cache-off!)
|
(cache-off!)
|
||||||
|
|
||||||
|
@ -103,7 +104,7 @@
|
||||||
(merge
|
(merge
|
||||||
(merge-meta-and-content file-name page-meta content)
|
(merge-meta-and-content file-name page-meta content)
|
||||||
(let [date (parse-post-date file-name (:post-date-format config))
|
(let [date (parse-post-date file-name (:post-date-format config))
|
||||||
archive-fmt (java.text.SimpleDateFormat. "yyyy MMMM" (java.util.Locale. "en"))
|
archive-fmt (java.text.SimpleDateFormat. "yyyy MMMM" (Locale/getDefault))
|
||||||
formatted-group (.format archive-fmt date)]
|
formatted-group (.format archive-fmt date)]
|
||||||
{:date date
|
{:date date
|
||||||
:formatted-archive-group formatted-group
|
:formatted-archive-group formatted-group
|
||||||
|
|
Loading…
Reference in a new issue