Skip to content

Conversation

@kushthedude
Copy link
Member

Fixes #3582

@auto-label auto-label bot added the fix label Nov 8, 2019
@kushthedude
Copy link
Member Author

@prateekj117 @mariobehling @iamareebjamal Please check, Time was getting displayed wrongly on Public Pages due to helper issues but it was correct else where. Fixed it.

@fossasia fossasia deleted a comment Nov 8, 2019
@fossasia fossasia deleted a comment Nov 8, 2019
@iamareebjamal
Copy link
Member

No, it is displaying correctly on public pages and wrong elsewhere

@kushthedude
Copy link
Member Author

kushthedude commented Nov 8, 2019 via email

@iamareebjamal
Copy link
Member

iamareebjamal commented Nov 8, 2019

2020-03-19T01:00:00+00:00 should be displayed as March 19th 2020, 9:00 AM (+08)

Tell me what is wrong in that?

So it is correct. Please correct the bug in Event Wizard which I have mentioned

@iamareebjamal
Copy link
Member

We DON'T have to show raw time, we have to show time in event timezone. You have just created a PR to add a new bug which wasn't there instead of fixing the bug which is in the event wizard and dashboard

@kushthedude
Copy link
Member Author

kushthedude commented Nov 8, 2019 via email

@iamareebjamal
Copy link
Member

The time is UTC, and you have to convert it to the event timezone

@kushthedude
Copy link
Member Author

kushthedude commented Nov 8, 2019 via email

@kushthedude
Copy link
Member Author

The time is UTC, and you have to convert it to the event timezone

I dont think so, the time which we enter in the Wizard asks the time in our timezone not the UTC. Therefore, whenever I enter time & date wizard as 9 Nov, 9:00 AM and select my timezone as Singapore. this mean its the time in 9:00 AM Singapore.

@kushthedude
Copy link
Member Author

kushthedude commented Nov 8, 2019

Also lets consider an example, I am organising an event in IST(+5:30) if my start time is 9:00AM , I will enter this time and select the timezone +5:30, This doesn't mean event wizard should make any changes to this time ?
I dont know where the changing and modifying the time comes in picture, I am really getting a bit confused now !

@iamareebjamal
Copy link
Member

I dont think so, the time which we enter in the Wizard asks the time in our timezone not the UTC.

Did you take a look at the time returned by the server? Let's talk about facts and not air. Paste the time returned by the server

@iamareebjamal
Copy link
Member

You're talking in abstractions, hypothetics and philosophies about timezones and I am telling you what is happening by giving you concrete examples and API responses and the link to event public page.

Let's continue this discussion with facts from this point on

@kushthedude
Copy link
Member Author

I dont think so, the time which we enter in the Wizard asks the time in our timezone not the UTC.

Did you take a look at the time returned by the server? Let's talk about facts and not air. Paste the time returned by the server

I was talking in the air, I got your point and checked the server data. Event Public Page was showing the right time whereas others were showing wrong. Will update PR by tonight.

@fossasia fossasia deleted a comment Nov 10, 2019
@kushthedude
Copy link
Member Author

@iamareebjamal Please have a look, Fixed the time issues in events at every place of occuring.

@kushthedude
Copy link
Member Author

Also standardised the way of displaying the time at every position with respect of events.

@iamareebjamal
Copy link
Member

OK, please add before after screenshots and what about event wizard. I don't see any changes regarding that

@iamareebjamal
Copy link
Member

When rendered

@iamareebjamal
Copy link
Member

@kushthedude Please fix the time format so we can merge this. Another PR is open for event details wizard

@kushthedude
Copy link
Member Author

kushthedude commented Nov 16, 2019 via email

@iamareebjamal
Copy link
Member

@kushthedude Updates? This is blocking the release now. You stay active each day and ask assignment on issues but rarely update on PRs

@kushthedude
Copy link
Member Author

kushthedude commented Nov 20, 2019 via email

@kushthedude
Copy link
Member Author

@iamareebjamal This PR is delayed, But please give me a little more time to check if everything is working as expected or not. As by my approval the recent PR broke the complete event dashboard.

@kushthedude
Copy link
Member Author

@iamareebjamal Please review 🎉

@niranjan94
Copy link
Member

Codacy Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- app/helpers/general-date.js  2
- tests/integration/helpers/general-date-test.js  1
         

See the complete overview on Codacy

@iamareebjamal
Copy link
Member

#3611 (comment)

@kushthedude
Copy link
Member Author

#3611 (comment)

I have followed the same format, just added the timezone in suffix for ease of time.

@iamareebjamal
Copy link
Member

Some other formats have been removed or changed? Anyway, I'll test after coming from office

@kushthedude
Copy link
Member Author

Some other formats have been removed or changed?

Except at public event page, at every other place we had different format for event time as dicussed on chat I have used a single helper to generalise date format for events.

Anyway, I'll test after coming from office

Sure let me know if any more thing needs to be changed 😄

@iamareebjamal
Copy link
Member

we had different format for event time

In some places, time was displayed, in some places, date. So, different formats should be used for both. But not more than 2

@kushthedude
Copy link
Member Author

kushthedude commented Nov 20, 2019

we had different format for event time

In some places, time was displayed, in some places, date. So, different formats should be used for both. But not more than 2

No, Please see the changes at every place where StartTime was getting shown it was shown with date and time. Even the Cell General Date which is responsible for rendering time at most places was not consistent, As we were bypassing the format by passing DateFormat from ember table. All I have done is made the Time and Date consistent to format HH:MM, Date (TimeZone)

@iamareebjamal
Copy link
Member

Local (time correct, format wrong)

Screenshot from 2019-11-10 20-55-44

Time in Event Dashboard is fixed. But format is wrong. Time format should be like this:

Production (time wrong, format correct)
Screenshot from 2019-11-10 20-57-10

See the difference here

@iamareebjamal
Copy link
Member

We don't need Thursday everywhere

@kushthedude
Copy link
Member Author

kushthedude commented Nov 20, 2019 via email

@iamareebjamal
Copy link
Member

Great work!

@iamareebjamal iamareebjamal merged commit a291cbe into fossasia:development Nov 20, 2019
@kushthedude
Copy link
Member Author

Great work!

Time for a release 🤘 @iamareebjamal

@kushthedude kushthedude deleted the time branch November 20, 2019 18:44
@iamareebjamal
Copy link
Member

Not till debounce in search is fixed

@kushthedude
Copy link
Member Author

Not till debounce in search is fixed

I will take a look at debounce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong Event Time on public page

4 participants