<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/xmlrpc_patch.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -6,7 +6,7 @@ module MetaWeblogStructs
     member :url,                :string
     member :link,               :string
     member :permaLink,          :string
-    member :sections,          [:string]
+    member :categories,         [:string]
     member :mt_text_more,       :string
     member :mt_excerpt,         :string
     member :mt_keywords,        :string
@@ -109,7 +109,7 @@ class MetaWeblogService &lt; XmlRpcService
       :url               =&gt; article_url(article).to_s,
       :link              =&gt; article_url(article).to_s,
       :permaLink         =&gt; article.permalink.to_s,
-      :sections          =&gt; article.sections.collect { |c| c.name },
+      :categories        =&gt; article.sections.collect { |c| c.name },
       :mt_text_more      =&gt; article.body.to_s,
       :mt_excerpt        =&gt; article.excerpt.to_s,
       # :mt_keywords       =&gt; article.keywords.to_s,
@@ -117,7 +117,7 @@ class MetaWeblogService &lt; XmlRpcService
       # :mt_allow_pings    =&gt; article.allow_pings? ? 1 : 0,
       # :mt_convert_breaks =&gt; (article.text_filter.name.to_s rescue ''),
       # :mt_tb_ping_urls   =&gt; article.pings.collect { |p| p.url },
-      :dateCreated       =&gt; (article.published_at.to_formatted_s(:db) rescue &quot;&quot;)
+      :dateCreated       =&gt; (article.published_at rescue &quot;&quot;)
       )
   end
 
@@ -127,12 +127,11 @@ class MetaWeblogService &lt; XmlRpcService
     end
     
     def post_it(article, user, password, struct, publish)
-      article.attributes = {:updater =&gt; @user, :section_ids =&gt; Section.find(:all, :conditions =&gt; ['name IN (?)', struct['sections']]).collect(&amp;:id),
+      article.attributes = {:updater =&gt; @user, :section_ids =&gt; Section.find(:all, :conditions =&gt; ['name IN (?)', struct['categories']]).collect(&amp;:id),
         :body =&gt; struct['description'].to_s, :title =&gt; struct['title'].to_s, :excerpt =&gt; struct['mt_excerpt'].to_s}
+      utc_date = Time.utc(struct['dateCreated'].year, struct['dateCreated'].month, struct['dateCreated'].day, struct['dateCreated'].hour, struct['dateCreated'].sec, struct['dateCreated'].min) rescue article.published_at
 
-      utc_date = Time.utc(struct['dateCreated'].year, struct['dateCreated'].month, struct['dateCreated'].day, struct['dateCreated'].hour, struct['dateCreated'].sec, struct['dateCreated'].min)
-
-      article.published_at = publish == 1 ? utc_date : nil
+      article.published_at = publish == true ? utc_date : nil
       article.save!
       article.id
     end</diff>
      <filename>app/apis/meta_weblog_api.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,6 +3,7 @@ require 'zip/zipfilesystem'
 require 'dispatcher'
 require 'coderay'
 require 'ruby_pants'
+require 'xmlrpc_patch'
 
 Inflector.inflections do |inflect|
   #inflect.plural /^(ox)$/i, '\1en'</diff>
      <filename>lib/mephisto_init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -28,6 +28,7 @@ class BackendControllerTest &lt; Test::Unit::TestCase
 
     result = invoke_layered :metaWeblog, :getPost, *args
     assert_equal 'Welcome to Mephisto', result['title'], result.inspect
+    assert_equal %w(About Home), result['categories']
   end
 
   def test_meta_weblog_get_recent_posts
@@ -54,9 +55,9 @@ class BackendControllerTest &lt; Test::Unit::TestCase
     article.published_at = post_time
 
     struct = MetaWeblogService.new(@controller).article_dto_from(article)
-    invoke_layered :metaWeblog, :editPost, contents(:welcome).id, 'quentin', 'quentin', struct, 1
+    invoke_layered :metaWeblog, :editPost, contents(:welcome).id, 'quentin', 'quentin', struct, true
 
-    assert_equal post_time.to_s(:db), struct['dateCreated']
+    assert_equal post_time, struct['dateCreated']
 
     assert_equal 'Modified!', article.reload.title
     assert_equal &quot;&lt;p&gt;this is a &lt;strong&gt;test&lt;/strong&gt;&lt;/p&gt;&quot;, article.body_html, article.inspect</diff>
      <filename>test/functional/backend_controller_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a29900652b6aa6c1d72b8bb3b3d2d21c01a0982c</id>
    </parent>
  </parents>
  <author>
    <name>technoweenie</name>
    <email>technoweenie@567b1171-46fb-0310-a4c9-b4bef9110e78</email>
  </author>
  <url>http://github.com/reddavis/mephisto/commit/3746ecbc9dc0b57038bba61d0bfc9e0118189798</url>
  <id>3746ecbc9dc0b57038bba61d0bfc9e0118189798</id>
  <committed-date>2006-09-09T10:40:11-07:00</committed-date>
  <authored-date>2006-09-09T10:40:11-07:00</authored-date>
  <message>metaweblog api updates [Patrick Lenz]

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@2123 567b1171-46fb-0310-a4c9-b4bef9110e78</message>
  <tree>bfa67a9486bf04011be725df392516eaf7227e8b</tree>
  <committer>
    <name>technoweenie</name>
    <email>technoweenie@567b1171-46fb-0310-a4c9-b4bef9110e78</email>
  </committer>
</commit>
