Skip to content

Commit

Permalink
Merge pull request #34 from valadas/Issue24-replace-depraced-api9-1-0
Browse files Browse the repository at this point in the history
Replaced api calls deprecated in Dnn 9.1.0
  • Loading branch information
valadas authored Jun 23, 2018
2 parents 71bd1b0 + df1fa11 commit 32195d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Components/UserDefinedTableController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public DataTable Context(ModuleInfo moduleInfo, UserInfo userInfo, string search
row["LocalizedString_Previous"] = Localization.GetString("PagingPrevious.Text", Definition.SharedRessources);
row["LocalizedString_Next"] = Localization.GetString("PagingNext.Text", Definition.SharedRessources);
row["LocalizedString_Last"] = Localization.GetString("PagingLast.Text", Definition.SharedRessources);
var d = DateUtils.GetDatabaseTime();
var d = DateUtils.GetDatabaseUtcTime();
var timeZone = userInfo.Username != null
? userInfo.Profile.PreferredTimeZone
: portalSettings.TimeZone;
Expand Down
2 changes: 1 addition & 1 deletion DataTypes/ChangedAt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class EditChangedAt : EditCreatedAt
{
public override string Value
{
get { return Common.Utilities.DateUtils.GetDatabaseTime().ToString("s"); }
get { return Common.Utilities.DateUtils.GetDatabaseUtcTime().ToString("s"); }

set { base.Value = value; }
}
Expand Down
2 changes: 1 addition & 1 deletion DataTypes/CreatedAt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public override string Value
{
if (ViewState[TimeStamp] == null)
{
return Common.Utilities.DateUtils.GetDatabaseTime().ToString("s");
return Common.Utilities.DateUtils.GetDatabaseUtcTime().ToString("s");
}
return DateTime.Parse((string)ViewState[TimeStamp]).ToString("s");
}
Expand Down

0 comments on commit 32195d0

Please sign in to comment.