Event Time Incorrect - Bugs & Issues - Bugs & Issues - Progress Community
 Bugs & Issues

Event Time Incorrect

  • Event Time Incorrect
  • I created an Event with a time of 9:00 am but on the frontend the Event time shows 2:00 pm. What do I need to do to get the correct time to display?

    We are using Sitefinity 4 sp1.
  • Hello Alicia Etzel,

    Thank you for contacting us. 

    We have been exploring the mentioned issue, and it is a bug. I have logged it in TFS with #110090. For now what you can do is to define the Format property in the widget template as:

    <sf:FieldListView ID="EventsDates" runat="server" Format="EventStart.ToLocal():dd MMM, yyyy HH:mm:ss" />

    This will show the correct time based on the location settings of the user viewing the page.

    Once again excuse us if any inconvenience has been caused by this bug. We'll be working on fixing it.

    Kind regards,
    Victor Velev
    the Telerik team
  • Hi to all. I'm experiencing same issue, setting time to 12:00pm and show 6:00pm.

    This is my custom widget code:

    <%@ Control Language="C#" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.ContentUI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.Comments" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.PublicControls.BrowseAndEdit" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

    <telerik:RadListView ID="eventsList" ItemPlaceholderID="ItemsContainer" runat="server" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false">
        <LayoutTemplate>
            <sf:ContentBrowseAndEditToolbar ID="MainBrowseAndEditToolbar" runat="server" Mode="Add"></sf:ContentBrowseAndEditToolbar>
            <ul class="sfeventsList sfeventsListTitleCityDate">
                <asp:PlaceHolder ID="ItemsContainer" runat="server" />
            </ul>
        </LayoutTemplate>
        <ItemTemplate>
            <li class="sfeventListItemUpcomingEvents">
              <div>  
              <h2 class="sfeventTitle">
                    <sf:DetailsViewHyperLink TextDataField="Title" ToolTipDataField="Description" runat="server" />
                </h2>
              </div>
              <div style="clear: both"></div>
              <div class="sfeventMetaInfo" style="display: none;">
                    <sf:FieldListView ID="EventsDates" runat="server" />
                    <sf:CommentsBox ID="itemCommentsLink" runat="server" CssClass="sfeventCommentsCount"/>
                </div>
              <ul style="list-style-type: none;">
                <li style="float: left;">
                <sitefinity:TextField runat="server" DisplayMode="Read" Value='<%# ((DateTime)Eval("EventStart")).ToString("MMM dd, yyyy - hh:mm tt") %>' />
                </li>
                <li class="sfTimeZone">
                &nbsp;EDT
                </li>
              </ul>
              <ul style="list-style-type: none;">
                <li style="float: left;">
                <sitefinity:TextField runat="server" DisplayMode="Read" Value='<%# ((DateTime)Eval("EventEnd")).ToString("MMM dd, yyyy - hh:mm tt") %>' />
                </li>
                <li class="sfTimeZone">
                &nbsp;EDT
                </li>
              </ul>
              <div style="clear: both"></div>
                <sf:ContentBrowseAndEditToolbar ID="BrowseAndEditToolbar" runat="server" Mode="Edit,Delete,Unpublish"></sf:ContentBrowseAndEditToolbar>
            </li>
          <hr style="height: 1px; background: #c0c0c0;"/>
        </ItemTemplate>
    </telerik:RadListView>
    <sf:Pager id="pager" runat="server"></sf:Pager>
    <asp:PlaceHolder ID="socialOptionsContainer" runat="server" />

    Any help would be greatful.
  • Hi to all. I'm experiencing same issue, setting time to 12:00pm and show 6:00pm.

    This is my custom widget code:

    <%@ Control Language="C#" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.ContentUI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.Comments" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.PublicControls.BrowseAndEdit" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

    <telerik:RadListView ID="eventsList" ItemPlaceholderID="ItemsContainer" runat="server" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false">
        <LayoutTemplate>
            <sf:ContentBrowseAndEditToolbar ID="MainBrowseAndEditToolbar" runat="server" Mode="Add"></sf:ContentBrowseAndEditToolbar>
            <ul class="sfeventsList sfeventsListTitleCityDate">
                <asp:PlaceHolder ID="ItemsContainer" runat="server" />
            </ul>
        </LayoutTemplate>
        <ItemTemplate>
            <li class="sfeventListItemUpcomingEvents">
              <div>  
              <h2 class="sfeventTitle">
                    <sf:DetailsViewHyperLink TextDataField="Title" ToolTipDataField="Description" runat="server" />
                </h2>
              </div>
              <div style="clear: both"></div>
              <div class="sfeventMetaInfo" style="display: none;">
                    <sf:FieldListView ID="EventsDates" runat="server" />
                    <sf:CommentsBox ID="itemCommentsLink" runat="server" CssClass="sfeventCommentsCount"/>
                </div>
              <ul style="list-style-type: none;">
                <li style="float: left;">
                <sitefinity:TextField runat="server" DisplayMode="Read" Value='<%# ((DateTime)Eval("EventStart")).ToString("MMM dd, yyyy - hh:mm tt") %>' />
                </li>
                <li class="sfTimeZone">
                &nbsp;EDT
                </li>
              </ul>
              <ul style="list-style-type: none;">
                <li style="float: left;">
                <sitefinity:TextField runat="server" DisplayMode="Read" Value='<%# ((DateTime)Eval("EventEnd")).ToString("MMM dd, yyyy - hh:mm tt") %>' />
                </li>
                <li class="sfTimeZone">
                &nbsp;EDT
                </li>
              </ul>
              <div style="clear: both"></div>
                <sf:ContentBrowseAndEditToolbar ID="BrowseAndEditToolbar" runat="server" Mode="Edit,Delete,Unpublish"></sf:ContentBrowseAndEditToolbar>
            </li>
          <hr style="height: 1px; background: #c0c0c0;"/>
        </ItemTemplate>
    </telerik:RadListView>
    <sf:Pager id="pager" runat="server"></sf:Pager>
    <asp:PlaceHolder ID="socialOptionsContainer" runat="server" />

    Any help would be greatful.