LastActivityDate is in UTC

Last post 04-01-2007 7:11 AM by TATWORTH. 1 replies.

Sort Posts:

  • LastActivityDate is in UTC

    04-01-2007, 6:45 AM
    • Participant
      1,668 point Participant
    • lexy
    • Member since 02-14-2006, 10:35 PM
    • Posts 441

    Hi,

    In the SP aspnet_Membership_UpdateUser the LastActivityDate is in UTC.

    Can I somehow change that into UTC+2?

    Or even better adapt it according to the Local situation? (i.e. change to DST and back)

    Thanks in advance,

    Lx

    I use VB
  • Re: LastActivityDate is in UTC

    04-01-2007, 7:11 AM
    Answer
    • All-Star
      63,000 point All-Star
    • TATWORTH
    • Member since 02-04-2003, 1:34 PM
    • England
    • Posts 12,308
    • TrustedFriends-MVPs

    If the LastActivityDate is in UTC then the the value most likely came from the function GetUTCDATE - this needs to be changed to GetDate() which will put in the local date/time. It will probably be in the SP aspnet_Membership_UpdateUser, just change GetUTCDATE to GetDate.

    There may be some knock-on effects, which not knowing that particular database system, I cannot comment upon. 

    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
Page 1 of 1 (2 items)