1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / 4.1 NewsItem migration problem with dates

4.1 NewsItem migration problem with dates

4 posts, 0 answered
  1. Derek Bond
    Derek Bond avatar
    5 posts
    Registered:
    07 Jun 2004
    19 May 2011
    Link to this post
    issue migrating from 3.7sp4 to 4.1

    All NewsItems migrated across show the date as the date they were migrated rather then the previous publish date.

    The DB table shows this in all the date fields, ie publication_date, last_modified , and date_created


    The migration code (latest from codeplex) clearly show this information being set to the original migrated values.

    In MigrationNews.cs :
    case "Publication_Date":
    publicationDate = DateTime.Parse(metaData.Value.ToString());
    ...

    newsItem.DateCreated = newsContent.DateCreated;
    newsItem.LastModified = newsContent.DateModified;

    Stepping through, i can see that the correct historic values are being passed in so this is clearly a bug when the NewsItem gets written to the DB.

    Is there a way to make this work correctly?
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    16 Aug 2017
    25 May 2011
    Link to this post
    Hello Derek Bond,

    Thank you for using our services. Can you, please, take a look at this forum thread which contains a discussion on this matter and a code sample that shows a possible way for backdating your NewsItems. If you need any additional information on this matter, please do not hesitate to write back.

    Regards,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Phill Hodgkinson
    Phill Hodgkinson avatar
    362 posts
    Registered:
    10 Nov 2004
    25 May 2011
    Link to this post
    @Boyan, Will this issue ever be resolved? This just seems so wrong that you continue to assume that all news is published when added to the site and that nobody will every be adding old news to a site. Is this is PITS (PITS really sucks for trying to search for items), I'd love to have the link so we can get more and more people voting for this issue. 

    Telerik may think this is properly designed but  think it's a bug or a terrible design decision.

    Regards,
    Phill
  4. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    16 Aug 2017
    26 May 2011
    Link to this post
    Hi Phill Hodgkinson, Derek Bond,

    I have logged this issue as a bug in our system and we'll be working on synchronizing the code sample I've mentioned in my post below to one of the upcoming change sets of the Sitefinity migration tool so that the dates are preserved when importing content items. Please excuse us for the inconvenience caused by this issue.

    All the best,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
4 posts, 0 answered