Skip to content

Commit 044f3dc

Browse files
committed
Fixed RSS published date and page title/description (3.3.0.5)
1 parent a34f214 commit 044f3dc

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

BlogEngine/BlogEngine.Core/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
[assembly: CLSCompliant(false)]
2020
[assembly: ComVisible(false)]
2121
[assembly: AllowPartiallyTrustedCallers]
22-
[assembly: AssemblyVersion("3.3.0.4")]
22+
[assembly: AssemblyVersion("3.3.0.5")]
2323
[assembly: SecurityRules(SecurityRuleSet.Level1)]

BlogEngine/BlogEngine.Core/Services/Syndication/SyndicationGenerator.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,11 @@ public static string ToRfc822DateTime(DateTime dateTime)
216216
static string RssDateString(DateTime pubDate)
217217
{
218218
pubDate = BlogSettings.Instance.FromUtc(pubDate);
219-
var value = pubDate.ToString("ddd',' d MMM yyyy HH':'mm':'ss") + " " +
220-
pubDate.ToString("zzzz").Replace(":", "");
219+
220+
// get a timezone from local time (won't work with UTC)
221+
var zone = DateTime.Now.ToString("zzzz").Replace(":", "");
222+
223+
var value = pubDate.ToString("ddd',' d MMM yyyy HH':'mm':'ss") + " " + zone;
221224
return value;
222225
}
223226

BlogEngine/BlogEngine.NET/default.aspx.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ private void DisplayTags()
253253

254254
PostList1.ContentBy = ServingContentBy.Tag;
255255
PostList1.Posts = Post.GetPostsByTag(tag).ConvertAll(new Converter<Post, IPublishable>(delegate(Post p) { return p as IPublishable; }));
256-
Title = Resources.labels.AllPostsTagged + " '" + Request.QueryString["tag"].Substring(1) + "'";
256+
Title = string.Format("{0} '{1}'", Resources.labels.AllPostsTagged, tag);
257257
AddMetaDescription(Title);
258258
}
259259
}

0 commit comments

Comments
 (0)