We hit the same problem in Awestruct (similar to Jekyll). This happens when
you work with dates without times. You become reliant on the timezone of
the server to decide which day you are in GMT, which may not be the same
day where you are. Yes, it usually happens around the midnight hour.

The best solution (speaking generally), is to pass the time and timezone
offset to the API (if that's possible) when you do the post.

In other words, leaving out the time doesn't mean the post doesn't get
assigned a time, but rather a time is picked for you :)

-Dan


On Wed, Jun 26, 2013 at 9:47 PM, Tong <[email protected]> wrote:

> Hi,
>
> I noticed that it had happened many times -- when using blogpost.py to
> update an old blog entry, sometimes the post date is changed, thus
> resulting the old blog entry to change to an entirely new url. It hadn't
> been much a trouble to me previously, when nobody reads my blogs. But now
> that I've posted my old blog entry url to several places, it has become a
> major concern to me.
>
> Here is the work log when I'm working on my old blog entry:
>
> $ blogpost.py post DebianPackagesBuilding.adoc
> blogpost: updating published post 'Debian Packages Building'...
> blogpost: id: 130
> blogpost: url:
> http://sfxpt.wordpress.com/2013/05/24/debian-packages-building/
> blogpost: assigning categories: Debian,Ubuntu,Package Building
>
> $ blogpost.py post DebianPackagesBuilding.adoc
> blogpost: updating published post 'Debian Packages Building'...
> blogpost: id: 130
> blogpost: url:
> http://sfxpt.wordpress.com/2013/05/24/debian-packages-building/
> blogpost: assigning categories: Debian,Ubuntu,Package Building
>
>  . . .
>
> $ blogpost.py post DebianPackagesBuilding.adoc
> blogpost: updating published post 'Debian Packages Building'...
> blogpost: id: 130
> blogpost: url:
> http://sfxpt.wordpress.com/2013/05/23/debian-packages-building/
> blogpost: assigning categories: Debian,Ubuntu,Package Building
>
> I.e., after several iteration of changes, my old blog entry's url was
> suddenly changed. This happened around 11:30pm local time. I don't know it
> is wordpress or blogpost's contribution, but I have a feeling it has
> something to do with timezone, and my daylight saving time, etc.
>
> Any comments for fixes?
>
> Thanks
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/asciidoc.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Dan Allen | http://google.com/profiles/dan.j.allen

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to