<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,6 +3,7 @@ CFLAGS = -g -O0 -Wall -I./
 CC = gcc
 OBJS = main.o clog.o hash.o db.o
 TEST_OBJS = test.o hash.o
+DEPLOY_OBJS = *.ct clog.db clog.cgi
 SRCS = $(OBJS:.o=.c)
 
 clog: $(OBJS)
@@ -17,6 +18,9 @@ dep:
 clean:
 	rm -f $(OBJS) clog core *~
 
+deploy:
+	cp -t /Library/WebServer/CGI-Executables $(DEPLOY_OBJS)
+
 test.o: test.c
 main.o: main.c clog.h
 clog.o: clog.c db.h</diff>
      <filename>Makefile</filename>
    </modified>
    <modified>
      <diff>@@ -18,6 +18,7 @@
         &lt;link rel=&quot;alternate&quot; href=&quot;http://timothylive.net/clog/{=id=}&quot; /&gt;
         &lt;link rel=&quot;edit&quot; href=&quot;http://timothylive.net/clog/edit/{=id=}.atom&quot; /&gt;
         &lt;updated&gt;{=c_time=}&lt;/updated&gt;
+		&lt;content type=&quot;html&quot;&gt;&lt;![CDATA[{=content=}]]&gt;&lt;/content&gt;
     &lt;/entry&gt;
 {=loop_end=}
 &lt;/feed&gt;</diff>
      <filename>atom.ct</filename>
    </modified>
    <modified>
      <diff>@@ -224,10 +224,10 @@ int generate_entries(int window, int id, const char *template_file) {
                 pfptr = print_comment_count;
             } else
             if (strcmp(results[col], &quot;c_time&quot;) == 0) {
-                pfptr = print_rfc_date;
+                pfptr = print_date;
             } else
             if (strcmp(results[col], &quot;u_time&quot;) == 0) {
-                pfptr = print_rfc_date;
+                pfptr = print_date;
             }
             hash_add(entries[index], results[col], results[row * c + col], pfptr);
         }
@@ -236,6 +236,7 @@ int generate_entries(int window, int id, const char *template_file) {
     print_template(template_file, entries, r);
 
     /*
+	 * TODO: fix this :(
     for (i = 0; i &lt; r; i++) {
         hash_free(entries[r]);
     }
@@ -303,7 +304,7 @@ int generate_comments(int entry_id, const char *template_file) {
                 pfptr = print_comment_count;
             } else
             if (strcmp(results[col], &quot;c_time&quot;) == 0) {
-                pfptr = print_rfc_date;
+                pfptr = print_date;
             }
             hash_add(comments[index], results[col], results[row * c + col], pfptr);
         }
@@ -369,17 +370,18 @@ int error_log(const char *fmt, ...) {
     return (ret);
 }
 
-void print_rfc_date(char *time) {
+void print_date(char *time) {
     if (time != NULL) {
         char date[50];
-        rfc_date(date, strtol(time, NULL, 10));
+		//const char *format = &quot;%a, %d %b %Y %H:%M:%S %z&quot;;
+		const char *format = &quot;%Y-%m-%dT%H:%M:%SZ&quot;;
+        format_date(date, strtol(time, NULL, 10), format);
         printf(&quot;%s&quot;, date);
     }
 }
 
-void rfc_date(char *d_str, time_t time) {
+void format_date(char *d_str, time_t time, const char *format) {
     struct tm *date;
-    const char *format = &quot;%a, %d %b %Y %H:%M:%S %z&quot;;
 
     date = localtime((const time_t *)&amp;time);
     (void)strftime(d_str, 32, format, date);</diff>
      <filename>clog.c</filename>
    </modified>
    <modified>
      <diff>@@ -73,10 +73,10 @@ int remove_entry(int);
  */
 void htmlize_print(char *str);
 void print_comment_count(char *count);
-void print_rfc_date(char *time);
+void print_date(char *time);
 
 int error_log(const char *fmt, ...);
 
-void rfc_date(char *d_str, time_t time);
+void format_date(char *d_str, time_t time, const char *format);
 
 #endif</diff>
      <filename>clog.h</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d414c2b61ccc2659c4e82e8e3fc3976a5f9ebb34</id>
    </parent>
  </parents>
  <author>
    <name>Timothy Kim</name>
    <email>highwind@terra.local</email>
  </author>
  <url>http://github.com/highwind/clog/commit/5128acc3c8fcbf9c2ddf37bd4acd87f5d5b8564a</url>
  <id>5128acc3c8fcbf9c2ddf37bd4acd87f5d5b8564a</id>
  <committed-date>2009-10-28T21:11:59-07:00</committed-date>
  <authored-date>2009-10-28T21:11:59-07:00</authored-date>
  <message>atom feed added content and fixed time format</message>
  <tree>3c321a3961648e98df1ab43322bdc0ef35de336b</tree>
  <committer>
    <name>Timothy Kim</name>
    <email>highwind@terra.local</email>
  </committer>
</commit>
