Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsProblem with time LastLoginDateProblem with time LastLoginDate
Previous
 
Next
New Post
9/11/2008 6:32 AM
 

Hi!

I have a problem I don´t understand, hope someone can help me.

I have created a report showing the users from a portal with their last login. I found the LastLoginDate from the aspnet_Membership table. But the timestamp in that table differences from my actual time on server. It shows time 2 hours backward from actual time. So my report shows uncorrect time. 

When looking in DNN´s core user accounts, the timestamps shows correct local time. I have checked the SQL server time, and it is correct. 

Why is it like this? A difference in membership table, and actual server time?

Can anyone give me advice how I could adjust my sql syntax to adjust time + 2 hours?

My sql syntax that I use is:

SELECT     AU.UserName, AM.CreateDate, AM.LastLoginDate
FROM         dbo.aspnet_Membership AS AM WITH (nolock) INNER JOIN
                      dbo.aspnet_Users AS AU WITH (nolock) ON AM.UserId = AU.UserId INNER JOIN
                      dbo.Users AS U WITH (nolock) ON U.Username = AU.UserName INNER JOIN
                      dbo.UserPortals ON U.UserID = dbo.UserPortals.UserId INNER JOIN
                      dbo.UserRoles ON U.UserID = dbo.UserRoles.UserID
WHERE     (dbo.UserPortals.PortalId = 74) AND (dbo.UserRoles.RoleID = 293)
 

If anyone could give advice I would be very thankful

Rgds Petri

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsProblem with time LastLoginDateProblem with time LastLoginDate


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out