Re: How to set published date while posting to blogger using API?

Sife Abdelrazak <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
Hello,
I know that is the thread s quite old but this for future reference, f you 
want to set your post scheduled add published field with a future date like 
this:
{ 
    "kind": "blogger#post", 
    "published": "2013-11-20T20:08:00-07:00",
    "blog": {"id": "4545546"}, 
    "title": "Post scheduled", 
    "content": "Content" 
}
        
Of course this must be send as JSON query.
On Thursday, February 7, 2013 11:59:51 PM UTC-8, Umesh Kulkarni wrote:
>
> Hi Guys,
>
> I am trying to post to blogger using API. The post gets successfully 
> created but when I pass date using setPublished its not taking the passed 
> date and the post gets published for current date.
>
> I have passed date using all formats but somehow its not working.
> The formats I have used are
> setPublished("2013-02-07T21:48:00-08:00");
> setPublished("2013-02-07T22:49:00.001-08:00");
>
> I am using PHP to get datetime as.
> $datetime = new DateTime(date("Y-m-d H:i:s"));
> $datetime->setTimezone(new DateTimeZone('America/Los_Angeles'));
> echo $publish_date = $datetime->format(DATE_RFC3339);
>
> So can anyone please tell me how to pass date while creating post? 
>
> Thanks in advance.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" 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/bloggerdev.
For more options, visit https://groups.google.com/groups/opt_out.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.