4

I publish my blog using github pages. Recently I noticed a permalink to one of the posts broke.

It used to be this:

http://strilanc.com/quantum/2014/03/07/Building-your-own-Quantum-Fourier-Transform.html

but now it's this:

http://strilanc.com/quantum/2014/03/06/Building-your-own-Quantum-Fourier-Transform.html

The date shown for the post is also one day earlier than what's specified in the filename and metadata at the start of the contents:

Filename: 2014-03-07-Building-your-own-Quantum-Fourier-Transform.markdown

---
layout: post
title: "Building your own Quantum Fourier Transform"
date: 2014-03-07 0:30:01
categories: quantum
---

Even more strangely, the local server I run with jekyll serve does show the right date, and use the right permalink.

What the heck is going on?

Craig Gidney
  • 17,763
  • 5
  • 68
  • 136

1 Answers1

3

I'm not 100% positive on this but is it possible that since there is no timezone information in that date that it is being converted when it is built?

Just as an FYI, if you didn't know already, that date is not necessary unless you need to maintain order of posts in a more granular way than the date in the filename.

No definitive answer here just some thoughts and comments.

Alex
  • 1,993
  • 1
  • 15
  • 25
  • You nailed it. There was a timezone conversion happening that pushed the time across midnight. I moved the time to noon-ish EST and the day went back to the correct value. – Craig Gidney Apr 01 '14 at 03:54
  • 1
    There's an issue submitted to the Jekyll repo about it already: https://github.com/jekyll/jekyll/issues/1069 – Craig Gidney Apr 01 '14 at 03:55
  • (and the reason it *used* to work is I recently moved between time zones) – Craig Gidney Apr 01 '14 at 04:00