Forums

[cs2008.5b1] Edit blog post will change Publication date

This question has suggested answer(s)

This bug in all version of cs2008 (cs2008,cs2008sp1,cs2008.5b1) .

If your setup your timezone not GMT (eq.GMT-8) , you will find Publication date will decrease or increase in blog post.

For example:
If original Publication date is 2008/09/02 11:00PM , when you enter edit post , the publication date is show 2008/09/02 03:00PM (in GMT-8), when you save it and publication date will decrease 8 hours of original post.

This bug only find in edit Blog post , because only blog allow you change publication date.

Code Highlight / Syntax Highlighter CSModule and More CS tools ,Visit Rurisoft Update Service

All Replies
  • I am test this issue, it's lost add timezone in data Binding.

    And i have solution for fix this issue , Please telligent fix it on next version.

    File: \source\Blogs\Controls\Forms\CreateEditWeblogPostForm.cs

    public override void DataBind()
            {
                base.DataBind();

                WeblogPost post = DataSource as WeblogPost;
                Weblog blog = this.Weblog;
                CSContext csContext = WeblogControlUtility.Instance().GetCurrentCSContext(this.Page);

                if (blog == null)
                {
                    this.AutomatedVisible = false;
                    return;
                }

                AccessCheck(blog, csContext.User, post);

                if (!Page.IsPostBack)
                {
                    if (post != null)
                    {
                        #region Data binding (performed when not a postback and with a post)

                        PostBodyEditor.Text = post.Body;
                        PostSubjectTextBox.Text = Globals.HtmlDecode(post.Subject);

                        if (PostNameTextBox != null)
                            PostNameTextBox.Text = post.Name;

                        if (PostExcerptTextBox != null)
                            PostExcerptTextBox.Text = post.Excerpt;

                        if (CommentModerationDropDownList != null)

                            if (FeedbackNotificationDropDownList != null)
                           
                                if (PostDateDateTimeSelector != null)
                               
                                    PostDateDateTimeSelector.DateTime = post.PostDate;

    Change last line to

                                    PostDateDateTimeSelector.DateTime = post.PostDate.AddHours(csContext.SiteSettings.TimezoneOffset);

    Code Highlight / Syntax Highlighter CSModule and More CS tools ,Visit Rurisoft Update Service

  • Thanks for identifying this issue.  I've logged it as issue #1672.  Updates to this issue will be posted to this thread.

    Ben Tiedt's Blog

  • Test CS2008.5 , have same issue.

    Code Highlight / Syntax Highlighter CSModule and More CS tools ,Visit Rurisoft Update Service

  • http://dev.communityserver.com/forums/p/500307/625878.aspx#625878

    I don't follow how to fix this?  I've had this issue since CS 2008 upgrade as well.

  • The bug has been fixed in core and the fix will be part of SP1.