Fix date stuff in path building

This commit is contained in:
Will Boyd
2025-02-03 14:47:43 -05:00
parent 7934f4e4b4
commit 71028a272b
3 changed files with 5 additions and 14 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ function normalize(value, type, onError) {
export function buildSamplePostPath(config) {
const outputDir = path.sep;
const type = '';
const date = luxon.DateTime.now().toFormat('yyyy-LL-dd');
const date = luxon.DateTime.now();
const slug = 'my-post';
return shared.buildPostPath(outputDir, type, date, slug, config);