Browse Source
Merge pull request #121 from onurpicakci/onur/bugfix
Use utc for admin side
pull/124/head
Berkan Sasmaz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
12 additions and
5 deletions
-
src/EventHub.Admin.Application/Events/EventAppService.cs
-
src/EventHub.Admin.HttpApi.Host/EventHubAdminHttpApiHostModule.cs
-
src/EventHub.Admin.Web/Pages/EventManagement.razor
-
src/EventHub.Domain.Shared/Localization/EventHub/en.json
|
|
|
@ -64,7 +64,7 @@ namespace EventHub.Admin.Events |
|
|
|
@event.SetTitle(input.Title); |
|
|
|
@event.SetDescription(input.Description); |
|
|
|
@event.Language = input.Language; |
|
|
|
@event.SetTime(input.StartTime, @event.EndTime); |
|
|
|
@event.SetTime(input.StartTime, input.EndTime); |
|
|
|
await _eventManager.SetCapacityAsync(@event, input.Capacity); |
|
|
|
|
|
|
|
if (input.CoverImageStreamContent != null && input.CoverImageStreamContent.ContentLength > 0) |
|
|
|
|
|
|
|
@ -29,6 +29,7 @@ using Volo.Abp.Caching.StackExchangeRedis; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Volo.Abp.Swashbuckle; |
|
|
|
using Volo.Abp.Timing; |
|
|
|
using Volo.Abp.VirtualFileSystem; |
|
|
|
|
|
|
|
namespace EventHub.Admin |
|
|
|
@ -61,6 +62,7 @@ namespace EventHub.Admin |
|
|
|
ConfigureCookies(context); |
|
|
|
ConfigureSwaggerServices(context, configuration); |
|
|
|
ConfigureBackgroundJobs(); |
|
|
|
ConfigureTiming(); |
|
|
|
ConfigureAutoApiControllers(); |
|
|
|
} |
|
|
|
|
|
|
|
@ -85,6 +87,11 @@ namespace EventHub.Admin |
|
|
|
{ |
|
|
|
Configure<AbpDistributedCacheOptions>(options => { options.KeyPrefix = "EventHub:"; }); |
|
|
|
} |
|
|
|
|
|
|
|
private void ConfigureTiming() |
|
|
|
{ |
|
|
|
Configure<AbpClockOptions>(options => { options.Kind = DateTimeKind.Utc; }); |
|
|
|
} |
|
|
|
|
|
|
|
private void ConfigureVirtualFileSystem(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -230,7 +230,7 @@ |
|
|
|
<Validation> |
|
|
|
<Field> |
|
|
|
<FieldLabel>@L["StartTime"] *</FieldLabel> |
|
|
|
<DateEdit TValue="DateTime" @bind-Date="@EditingEvent.StartTime"> |
|
|
|
<DateEdit TValue="DateTime" InputMode="DateInputMode.DateTime" @bind-Date="@EditingEvent.StartTime"> |
|
|
|
<Feedback> |
|
|
|
<ValidationError/> |
|
|
|
</Feedback> |
|
|
|
@ -240,7 +240,7 @@ |
|
|
|
<Validation> |
|
|
|
<Field> |
|
|
|
<FieldLabel>@L["EndTime"] *</FieldLabel> |
|
|
|
<DateEdit TValue="DateTime" @bind-Date="@EditingEvent.EndTime"> |
|
|
|
<DateEdit TValue="DateTime" InputMode="DateInputMode.DateTime" @bind-Date="@EditingEvent.EndTime"> |
|
|
|
<Feedback> |
|
|
|
<ValidationError/> |
|
|
|
</Feedback> |
|
|
|
|
|
|
|
@ -122,7 +122,7 @@ |
|
|
|
"Menu:Events": "Events", |
|
|
|
"Title": "Title", |
|
|
|
"OrganizationDisplayName": "Organization Display Name", |
|
|
|
"StartTime": "Start Time", |
|
|
|
"StartTime": "Start Time (UTC)", |
|
|
|
"MinAttendeeCount": "Min Attendee Count", |
|
|
|
"MaxAttendeeCount": "Max Attendee Count", |
|
|
|
"UpdateEvent": "Update Event", |
|
|
|
@ -133,7 +133,7 @@ |
|
|
|
"Country": "Country", |
|
|
|
"City": "City", |
|
|
|
"Capacity": "Capacity", |
|
|
|
"EndTime": "End Time", |
|
|
|
"EndTime": "End Time (UTC)", |
|
|
|
"ChooseCoverImage": "Choose a cover image", |
|
|
|
"Permission:RegistrationManagement": "Registration Management", |
|
|
|
"Permission:AddAttendee": "Add Attendee", |
|
|
|
|