change publication like instagram and add time zone to agenda

This commit is contained in:
Peter Maquiran
2023-09-26 10:29:29 +01:00
parent c0eee0e2b3
commit f042168e2e
22 changed files with 305 additions and 113 deletions
@@ -114,12 +114,18 @@ export class ViewEventPage implements OnInit {
})
}
TimeZoneString = ''
setTimeZone() {
this.TimeZoneString = this.loadedEvent.TimeZone.split(')')[1]
}
loadEvent() {
if(this.sesseionStora.user.Profile == 'MDGPR' || this.sesseionStora.user.Profile == 'PR') {
this.eventsService.getEvent(this.eventId).subscribe(res => {
this.loadedEvent = res;
this.setTimeZone()
this.today = new Date(res.StartDate);
this.customDate = this.days[this.today.getDay()]+ ", " + this.today.getDate() +" de " + ( this.months[this.today.getMonth()]);
@@ -142,6 +148,7 @@ export class ViewEventPage implements OnInit {
div.innerHTML = res.Body.Text
res.Body.Text = div.innerText
this.loadedEvent = res;
this.setTimeZone()
this.today = new Date(res.StartDate);
this.customDate = this.days[this.today.getDay()]+ ", " + this.today.getDate() +" de " + ( this.months[this.today.getMonth()]);