-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Timezone setting defined & javascript helper function added for conve…
…rting datetime to another timezone #936
- Loading branch information
Showing
6 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Abp.Timing | ||
{ | ||
public static class TimingSettingNames | ||
{ | ||
public const string TimeZone = "Abp.Timing.TimeZone"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Collections.Generic; | ||
using Abp.Configuration; | ||
using Abp.Localization; | ||
|
||
namespace Abp.Timing | ||
{ | ||
public class TimingSettingProvider : SettingProvider | ||
{ | ||
public override IEnumerable<SettingDefinition> GetSettingDefinitions(SettingDefinitionProviderContext context) | ||
{ | ||
return new[] | ||
{ | ||
new SettingDefinition(TimingSettingNames.TimeZone, null, L("TimeZone"), scopes: SettingScopes.Tenant | SettingScopes.User, isVisibleToClients: true) | ||
}; | ||
} | ||
|
||
private static LocalizableString L(string name) | ||
{ | ||
return new LocalizableString(name, AbpConsts.LocalizationSourceName); | ||
} | ||
} | ||
} |