<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -23,7 +23,7 @@
 						&lt;select name=&quot;month&quot;&gt;
 							&lt;option value=&quot;&quot;&gt;----------&lt;/option&gt;
 							{% for archive in theme.archives_list %}
-							&lt;option value=&quot;${ archive.when | date(&quot;Y-m&quot;) }&quot;${ GET.month | option_selected(archive.when | date(&quot;Y-m&quot;)) }&gt;${ archive.when | date(&quot;F Y&quot;) } ($archive.count)&lt;/option&gt;
+							&lt;option value=&quot;${ archive.when | strftime(&quot;%Y-%m&quot;) }&quot;${ GET.month | option_selected(archive.when | strftime(&quot;%Y-%m&quot;)) }&gt;${ archive.when | strftime(&quot;%B %Y&quot;) } ($archive.count)&lt;/option&gt;
 							{% endfor %}
 						&lt;/select&gt;
 						&lt;button type=&quot;submit&quot; class=&quot;inline&quot;&gt;${ &quot;Show &amp;rarr;&quot; | translate }&lt;/button&gt;</diff>
      <filename>admin/layout/pages/manage_posts.twig</filename>
    </modified>
    <modified>
      <diff>@@ -34,7 +34,7 @@
 					$status = (empty($status)) ? &quot;public&quot; : str_replace(array_keys($status_translate), array_values($status_translate), $status[1]) ;
 					$clean = (empty($basename)) ? sanitize($title) : str_replace(&quot;_&quot;, &quot;-&quot;, $basename[1]) ;
 					$url = Post::check_url($clean);
-					$timestamp = (empty($date)) ? datetime() : date(&quot;Y-m-d H:i:s&quot;, strtotime($date[1])) ;
+					$timestamp = (empty($date)) ? datetime() : datetime($date[1]) ;
 
 					# Damn it feels good to be a gangsta...
 					$_POST['status'] = $status;</diff>
      <filename>importers/movabletype.php</filename>
    </modified>
    <modified>
      <diff>@@ -18,25 +18,25 @@ $(function(){
 			alert(response.replace(/(HEY_JAVASCRIPT_THIS_IS_AN_ERROR_JUST_SO_YOU_KNOW|&lt;([^&gt;]+)&gt;\n?)/gm, &quot;&quot;))
 	})
 
-&lt;?php if (match(array(&quot;/edit_(post|page)/&quot;, &quot;/write_(post|page)/&quot;), $action)): ?&gt;
-	// Fancify the &quot;More Options&quot; links.
-	$(document.createElement(&quot;a&quot;)).attr({
-		id: &quot;more_options_link&quot;,
-		href: &quot;javascript:void(0)&quot;
-	}).addClass(&quot;more_options_link&quot;).html(&quot;&lt;?php echo $more_options_string; ?&gt;&quot;).insertBefore(&quot;.buttons&quot;)
-	$(&quot;#more_options&quot;).clone().insertAfter(&quot;#more_options_link&quot;).removeClass(&quot;js_disabled&quot;)&lt;?php if (empty($_COOKIE['show_more_options'])): ?&gt;.css(&quot;display&quot;, &quot;none&quot;)&lt;?php endif; ?&gt;
-
-	$(&quot;#more_options_link&quot;).click(function(){
-		if ($(&quot;#more_options&quot;).css(&quot;display&quot;) == &quot;none&quot;) {
-			$(this).html(&quot;&lt;?php echo __(&quot;&amp;laquo; Fewer Options&quot;); ?&gt;&quot;)
-			Cookie.set(&quot;show_more_options&quot;, &quot;true&quot;, 30)
-		} else {
-			$(this).html(&quot;&lt;?php echo __(&quot;More Options &amp;raquo;&quot;); ?&gt;&quot;)
-			Cookie.destroy(&quot;show_more_options&quot;)
-		}
-		$(&quot;#more_options&quot;).slideToggle()
-	})
-&lt;?php endif; ?&gt;
+	if ($(&quot;#more_options&quot;).size()) {
+		// Fancify the &quot;More Options&quot; links.
+		$(document.createElement(&quot;a&quot;)).attr({
+			id: &quot;more_options_link&quot;,
+			href: &quot;javascript:void(0)&quot;
+		}).addClass(&quot;more_options_link&quot;).html(&quot;&lt;?php echo $more_options_string; ?&gt;&quot;).insertBefore(&quot;.buttons&quot;)
+		$(&quot;#more_options&quot;).clone().insertAfter(&quot;#more_options_link&quot;).removeClass(&quot;js_disabled&quot;)&lt;?php if (empty($_COOKIE['show_more_options'])): ?&gt;.css(&quot;display&quot;, &quot;none&quot;)&lt;?php endif; ?&gt;
+
+		$(&quot;#more_options_link&quot;).click(function(){
+			if ($(&quot;#more_options&quot;).css(&quot;display&quot;) == &quot;none&quot;) {
+				$(this).html(&quot;&lt;?php echo __(&quot;&amp;laquo; Fewer Options&quot;); ?&gt;&quot;)
+				Cookie.set(&quot;show_more_options&quot;, &quot;true&quot;, 30)
+			} else {
+				$(this).html(&quot;&lt;?php echo __(&quot;More Options &amp;raquo;&quot;); ?&gt;&quot;)
+				Cookie.destroy(&quot;show_more_options&quot;)
+			}
+			$(&quot;#more_options&quot;).slideToggle()
+		})
+	}
 
 	// Remove things that only exist for JS-disabled users.
 	$(&quot;.js_disabled&quot;).remove()</diff>
      <filename>includes/admin.js.php</filename>
    </modified>
    <modified>
      <diff>@@ -86,6 +86,7 @@
 					$archives[$timestamp] = array(&quot;posts&quot; =&gt; array(),
 					                              &quot;year&quot; =&gt; $time-&gt;year,
 					                              &quot;month&quot; =&gt; strftime(&quot;%B&quot;, $timestamp),
+					                              &quot;timestamp&quot; =&gt; $timestamp,
 					                              &quot;url&quot; =&gt; $route-&gt;url(&quot;archive/&quot;.when(&quot;Y/m/&quot;, $time-&gt;created_at)));
 
 					$archives[$timestamp][&quot;posts&quot;] = Post::find(array(&quot;where&quot; =&gt; &quot;`__posts`.`created_at` like :created_at&quot;,
@@ -98,12 +99,13 @@
 					error(__(&quot;Error&quot;), __(&quot;Please enter a valid year and month.&quot;));
 
 				$timestamp = mktime(0, 0, 0, $_GET['month'], fallback($_GET['day'], &quot;1&quot;, true), $_GET['year']);
-				$theme-&gt;title = _f(&quot;Archive of %s&quot;, array(date(&quot;F Y&quot;, $timestamp)));
+				$theme-&gt;title = _f(&quot;Archive of %s&quot;, array(strftime(&quot;%B %Y&quot;, $timestamp)));
 
 				$theme-&gt;load(&quot;content/archive&quot;, array(&quot;posts&quot; =&gt; $posts,
 				                                      &quot;archive&quot; =&gt; array(&quot;year&quot; =&gt; $_GET['year'],
 				                                                         &quot;month&quot; =&gt; strftime(&quot;%B&quot;, $timestamp),
-				                                                         &quot;day&quot; =&gt; date(&quot;jS&quot;, $timestamp),
+				                                                         &quot;day&quot; =&gt; strftime(&quot;%d&quot;, $timestamp),
+				                                                         &quot;timestamp&quot; =&gt; $timestamp,
 				                                                         &quot;depth&quot; =&gt; isset($_GET['day']) ? &quot;day&quot; : (isset($_GET['month']) ? &quot;month&quot; : (isset($_GET['year']) ? &quot;year&quot; : &quot;&quot;))
 				                                                   )
 				                                ));</diff>
      <filename>index.php</filename>
    </modified>
    <modified>
      <diff>@@ -215,9 +215,9 @@
 
 		public function author_link() {
 			if ($this-&gt;author_url != &quot;&quot;) # If a URL is set
-				echo '&lt;a href=&quot;'.$this-&gt;author_url.'&quot;&gt;'.$this-&gt;author.'&lt;/a&gt;';
-			else # If not, just show their name
-				echo $this-&gt;author;
+				return '&lt;a href=&quot;'.$this-&gt;author_url.'&quot;&gt;'.$this-&gt;author.'&lt;/a&gt;';
+			else # If not, just return their name
+				return $this-&gt;author;
 		}
 
 		public function update($author, $author_email, $author_url, $body, $status, $timestamp) {</diff>
      <filename>modules/comments/model.Comment.php</filename>
    </modified>
    <modified>
      <diff>@@ -7,32 +7,6 @@
 			&lt;form id=&quot;edit_form&quot; action=&quot;{% admin &quot;update_comment&quot; %}&quot; method=&quot;post&quot; accept-charset=&quot;utf-8&quot; enctype=&quot;multipart/form-data&quot;&gt;
 				&lt;fieldset&gt;
 					&lt;p&gt;
-						&lt;label for=&quot;author&quot;&gt;${ &quot;Author&quot; | translate }&lt;/label&gt;
-						&lt;input class=&quot;text&quot; type=&quot;text&quot; name=&quot;author&quot; value=&quot;${ comment.author | escape }&quot; id=&quot;author&quot; /&gt;
-					&lt;/p&gt;
-					&lt;p&gt;
-						&lt;label for=&quot;author_email&quot;&gt;${ &quot;Author E-Mail&quot; | translate }&lt;/label&gt;
-						&lt;input class=&quot;text&quot; type=&quot;text&quot; name=&quot;author_email&quot; value=&quot;${ comment.author_email | escape }&quot; id=&quot;author_email&quot; /&gt;
-					&lt;/p&gt;
-					&lt;p&gt;
-						&lt;label for=&quot;author_url&quot;&gt;${ &quot;Author Website&quot; | translate }&lt;/label&gt;
-						&lt;input class=&quot;text&quot; type=&quot;text&quot; name=&quot;author_url&quot; value=&quot;${ comment.author_url | escape }&quot; id=&quot;author_url&quot; /&gt;
-					&lt;/p&gt;
-					&lt;p&gt;
-						&lt;label for=&quot;status&quot;&gt;${ &quot;Status&quot; | translate }&lt;/label&gt;
-						&lt;select name=&quot;status&quot; id=&quot;status&quot;&gt;
-							&lt;option value=&quot;approved&quot;${ comment.status | option_selected(&quot;approved&quot;) }&gt;${ &quot;Approved&quot; | translate }&lt;/option&gt;
-							&lt;option value=&quot;denied&quot;${ comment.status | option_selected(&quot;denied&quot;) }&gt;${ &quot;Denied&quot; | translate }&lt;/option&gt;
-							&lt;option value=&quot;spam&quot;${ comment.status | option_selected(&quot;spam&quot;) }&gt;${ &quot;Spam&quot; | translate }&lt;/option&gt;
-							&lt;option value=&quot;pingback&quot;${ comment.status | option_selected(&quot;pingback&quot;) }&gt;${ &quot;Pingback&quot; | translate }&lt;/option&gt;
-							&lt;option value=&quot;trackback&quot;${ comment.status | option_selected(&quot;trackback&quot;) }&gt;${ &quot;Trackback&quot; | translate }&lt;/option&gt;
-						&lt;/select&gt;
-					&lt;/p&gt;
-					&lt;p&gt;
-						&lt;label for=&quot;created_at&quot;&gt;${ &quot;Timestamp&quot; | translate }&lt;/label&gt;
-						&lt;input class=&quot;text&quot; type=&quot;text&quot; name=&quot;created_at&quot; value=&quot;${ comment.created_at | date }&quot; id=&quot;created_at&quot; /&gt;
-					&lt;/p&gt;
-					&lt;p&gt;
 						&lt;label for=&quot;body&quot;&gt;${ &quot;Body&quot; | translate }&lt;/label&gt;
 						&lt;textarea class=&quot;wide preview_me&quot; rows=&quot;12&quot; name=&quot;body&quot; id=&quot;body&quot; cols=&quot;50&quot;&gt;${ comment.body | escape }&lt;/textarea&gt;
 					&lt;/p&gt;
@@ -43,6 +17,39 @@
 						&lt;/button&gt;
 					&lt;/div&gt;
 
+					&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
+					&lt;noscript&gt;&lt;br /&gt;&lt;/noscript&gt;
+					&lt;div id=&quot;more_options&quot; class=&quot;more_options js_disabled&quot;&gt;
+						&lt;p&gt;
+							&lt;label for=&quot;author&quot;&gt;${ &quot;Author&quot; | translate }&lt;/label&gt;
+							&lt;input class=&quot;text&quot; type=&quot;text&quot; name=&quot;author&quot; value=&quot;${ comment.author | escape }&quot; id=&quot;author&quot; /&gt;
+						&lt;/p&gt;
+						&lt;p&gt;
+							&lt;label for=&quot;author_email&quot;&gt;${ &quot;Author E-Mail&quot; | translate }&lt;/label&gt;
+							&lt;input class=&quot;text&quot; type=&quot;text&quot; name=&quot;author_email&quot; value=&quot;${ comment.author_email | escape }&quot; id=&quot;author_email&quot; /&gt;
+						&lt;/p&gt;
+						&lt;p&gt;
+							&lt;label for=&quot;author_url&quot;&gt;${ &quot;Author Website&quot; | translate }&lt;/label&gt;
+							&lt;input class=&quot;text&quot; type=&quot;text&quot; name=&quot;author_url&quot; value=&quot;${ comment.author_url | escape }&quot; id=&quot;author_url&quot; /&gt;
+						&lt;/p&gt;
+						&lt;p&gt;
+							&lt;label for=&quot;status&quot;&gt;${ &quot;Status&quot; | translate }&lt;/label&gt;
+							&lt;select name=&quot;status&quot; id=&quot;status&quot;&gt;
+								&lt;option value=&quot;approved&quot;${ comment.status | option_selected(&quot;approved&quot;) }&gt;${ &quot;Approved&quot; | translate }&lt;/option&gt;
+								&lt;option value=&quot;denied&quot;${ comment.status | option_selected(&quot;denied&quot;) }&gt;${ &quot;Denied&quot; | translate }&lt;/option&gt;
+								&lt;option value=&quot;spam&quot;${ comment.status | option_selected(&quot;spam&quot;) }&gt;${ &quot;Spam&quot; | translate }&lt;/option&gt;
+								&lt;option value=&quot;pingback&quot;${ comment.status | option_selected(&quot;pingback&quot;) }&gt;${ &quot;Pingback&quot; | translate }&lt;/option&gt;
+								&lt;option value=&quot;trackback&quot;${ comment.status | option_selected(&quot;trackback&quot;) }&gt;${ &quot;Trackback&quot; | translate }&lt;/option&gt;
+							&lt;/select&gt;
+						&lt;/p&gt;
+						&lt;p&gt;
+							&lt;label for=&quot;created_at&quot;&gt;${ &quot;Timestamp&quot; | translate }&lt;/label&gt;
+							&lt;input class=&quot;text&quot; type=&quot;text&quot; name=&quot;created_at&quot; value=&quot;${ comment.created_at | strftime }&quot; id=&quot;created_at&quot; /&gt;
+						&lt;/p&gt;
+						${ trigger.call(&quot;edit_comment_options&quot;, comment) }
+						&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
+					&lt;/div&gt;
+
 					&lt;input type=&quot;hidden&quot; name=&quot;hash&quot; value=&quot;$site.secure_hashkey&quot; id=&quot;hash&quot; /&gt;
 					&lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;$comment.id&quot; id=&quot;id&quot; /&gt;
 				&lt;/fieldset&gt;</diff>
      <filename>modules/comments/pages/admin/edit_comment.twig</filename>
    </modified>
    <modified>
      <diff>@@ -2,10 +2,10 @@
 {% block content %}
 {% if archives %} {# List? (For all/yearly archives) #}
 	{% for archive in archives %}
-	&lt;h2&gt;&lt;a href=&quot;$archive.url&quot;&gt;$archive.month $archive.year&lt;/a&gt;&lt;/h2&gt;
+	&lt;h2&gt;&lt;a href=&quot;$archive.url&quot;&gt;${ archive.timestamp | strftime(&quot;%B %Y&quot;) }&lt;/a&gt;&lt;/h2&gt;
 	&lt;ul&gt;
 		{% for post in archive.posts %}
-		&lt;li&gt;${ post.created_at | date(&quot;d&quot;) }: &lt;a href=&quot;$post.url&quot;&gt;${ post.title | normalize | truncate(70) }&lt;/a&gt;&lt;/li&gt;
+		&lt;li&gt;${ post.created_at | strftime(&quot;%d&quot;) }: &lt;a href=&quot;$post.url&quot;&gt;${ post.title | normalize | truncate(70) }&lt;/a&gt;&lt;/li&gt;
 		{% endfor %}
 	&lt;/ul&gt;
 	&lt;br /&gt;
@@ -14,10 +14,10 @@
 
 {% if posts.paginated %} {# Posts? (For daily/monthly archives) #}
 {% if archive.depth == &quot;day&quot; %}
-	&lt;h2&gt;${ &quot;Archive of&quot; | translate } $archive.month $archive.day, $archive.year&lt;/h2&gt;
+	&lt;h2&gt;${ &quot;Archive of %s&quot; | translate | format(archive.timestamp | strftime(&quot;%B %d, %Y&quot;)) }&lt;/h2&gt;
 {% endif %}
 {% if archive.depth == &quot;month&quot; %}
-	&lt;h2&gt;${ &quot;Archive of&quot; | translate } $archive.month $archive.year&lt;/h2&gt;
+	&lt;h2&gt;${ &quot;Archive of %s&quot; | translate | format(archive.timestamp | strftime(&quot;%B %Y&quot;)) }&lt;/h2&gt;
 {% endif %}
 	{% for post in posts.paginated %}
 	{% include &quot;content/post.twig&quot; %}</diff>
      <filename>themes/default/content/archive.twig</filename>
    </modified>
    <modified>
      <diff>@@ -6,14 +6,8 @@
 				&lt;p&gt;$comment.body&lt;/p&gt;
 			&lt;/blockquote&gt;
 			&lt;cite&gt;
-				&lt;strong&gt;$comment.author_link&lt;/strong&gt; ${ &quot;on&quot; | translate }
-				${ comment.created_at | date(&quot;F jS, 2008, \\a\\\t g:i A&quot;) }
-				{% if comment.editable %}
-				&lt;em&gt;|&lt;/em&gt; $comment.edit_link
-				{% endif %}
-
-				{% if comment.deletable %}
-				&lt;em&gt;|&lt;/em&gt; $comment.delete_link
-				{% endif %}
+				${ &quot;&lt;strong&gt;%s&lt;/strong&gt; on %s&quot; | translate | format(comment.author_link, comment.created_at | strftime(&quot;%B %d, %Y, at %I:%M %r&quot;)) }
+				${ comment.edit_link(&quot;Edit&quot; | translate, &quot;&lt;em&gt;|&lt;/em&gt; &quot;) }
+				${ comment.delete_link(&quot;Delete&quot; | translate, &quot;&lt;em&gt;|&lt;/em&gt; &quot;) }
 			&lt;/cite&gt;
 		&lt;/li&gt;</diff>
      <filename>themes/default/content/comment.twig</filename>
    </modified>
    <modified>
      <diff>@@ -13,7 +13,7 @@
 							{% endif %}
 							&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
 							&lt;span class=&quot;info&quot;&gt;
-								&lt;strong&gt;&lt;a href=&quot;$post.url&quot;&gt;${ post.created_at | date(&quot;F jS @ g:i A&quot;) }&lt;/a&gt;&lt;/strong&gt;
+								&lt;strong&gt;&lt;a href=&quot;$post.url&quot;&gt;${ post.created_at | strftime(&quot;%B %d @ %I:%M %p&quot;) }&lt;/a&gt;&lt;/strong&gt;
 								{% if enabled_modules.categorize and post.category.id != 0 %}
 								&lt;em&gt;|&lt;/em&gt; &lt;a href=&quot;$post.category.url&quot; rel=&quot;tag&quot;&gt;$post.category.name&lt;/a&gt;
 								{% endif %}</diff>
      <filename>themes/default/content/post.twig</filename>
    </modified>
    <modified>
      <diff>@@ -35,7 +35,7 @@ ${ trigger.call(&quot;sidebar&quot;) }
 				&lt;h1&gt;${ &quot;Archives&quot; | translate }&lt;/h1&gt;
 				&lt;ul&gt;
 {% for archive in theme.archives_list %}
-					&lt;li&gt;&lt;a href=&quot;$archive.url&quot;&gt;${ archive.when | date(&quot;F Y&quot;) }&lt;/a&gt; &lt;span class=&quot;sub&quot;&gt;($archive.count)&lt;/span&gt;&lt;/li&gt;
+					&lt;li&gt;&lt;a href=&quot;$archive.url&quot;&gt;${ archive.when | strftime(&quot;%B %Y&quot;) }&lt;/a&gt; &lt;span class=&quot;sub&quot;&gt;($archive.count)&lt;/span&gt;&lt;/li&gt;
 {% endfor %}
 				&lt;/ul&gt;
 {% endif %}</diff>
      <filename>themes/default/sidebar.twig</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>acc28e6d525aad5d39e38f173b44229352b5a848</id>
    </parent>
  </parents>
  <author>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </author>
  <url>http://github.com/vito/chyrp/commit/5cffbb5ea3452a720f132995f5a98bb2da5a20a9</url>
  <id>5cffbb5ea3452a720f132995f5a98bb2da5a20a9</id>
  <committed-date>2008-06-24T14:59:32-07:00</committed-date>
  <authored-date>2008-06-24T14:59:32-07:00</authored-date>
  <message>* Moved all date representations that I can find over to strftime. [#120 state:resolved]
* Improved Edit Comment form appearance.
* &quot;More Options&quot; JS magic has more liberal checking to determine whether or not it should do its stuff.</message>
  <tree>353450dbff62584f49d5a2c2e444c1bffcfe7abf</tree>
  <committer>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </committer>
</commit>
