-
Notifications
You must be signed in to change notification settings - Fork 1.8k
chore: Change general-date helper format argument #5828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
iamareebjamal
merged 9 commits into
fossasia:development
from
divyamtayal:date-format-5796
Dec 3, 2020
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
5d96783
Added date formats
a843c1d
Merge branch 'development' into date-format-5796
5eda4c4
Added date formats-1
8e4f904
Reverted key argument
b69bd50
Added new format
bb0f17d
Imporved code-1
7c3f188
Revert "Imporved code-1"
5b8baf3
Fixed
d22cff7
Fixed replaceAll function
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
{{#if this.isSingleDay}} | ||
{{general-date @event.startsAt "dddd, D MMMM, YYYY" [email protected]}}<br>{{general-date @event.startsAt "h:mm A" [email protected]}} {{t 'to'}} {{general-date @event.endsAt "h:mm A" [email protected]}} | ||
{{else}} | ||
{{general-date @event.startsAt "dddd, D MMMM, YYYY h:mm A" [email protected]}} {{t 'to'}} {{general-date @event.endsAt "dddd, D MMMM, YYYY h:mm A" [email protected]}} | ||
{{general-date @event.startsAt 'date-time-long' [email protected]}} {{t 'to'}} {{general-date @event.endsAt 'date-time-long' [email protected]}} | ||
{{/if}} | ||
({{this.timezone}}) | ||
<br> | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -94,19 +94,13 @@ export default class extends Controller.extend(EmberTableControllerMixin) { | |
name : this.l10n.t('Submission Date'), | ||
width : 90, | ||
valuePath : 'submittedAt', | ||
cellComponent : 'ui-table/cell/cell-simple-date', | ||
options : { | ||
dateFormat: 'D MMM, YYYY h:mm A (z)' | ||
} | ||
cellComponent : 'ui-table/cell/cell-simple-date' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not needed here |
||
}, | ||
{ | ||
name : this.l10n.t('Last Modified'), | ||
width : 90, | ||
valuePath : 'lastModifiedAt', | ||
cellComponent : 'ui-table/cell/cell-simple-date', | ||
options : { | ||
dateFormat: 'D MMM, YYYY h:mm A (z)' | ||
} | ||
cellComponent : 'ui-table/cell/cell-simple-date' | ||
}, | ||
{ | ||
name : this.l10n.t('Notify'), | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
<small class="ui gray-text tiny">{{ticket.description}}</small> | ||
{{/if}} | ||
<div> | ||
<small class="ui gray-text small">Sale ends on {{general-date ticket.salesEndsAt 'dddd, D MMMM, YYYY h:mm A (z)' [email protected]}}</small> | ||
<small class="ui gray-text small">Sale ends on {{general-date ticket.salesEndsAt 'date-time-tz-long' [email protected]}}</small> | ||
</div> | ||
</td> | ||
<td></td> | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{{#if this.extraRecords.timezone}} | ||
<span> | ||
{{general-date this.record "D MMM, YYYY h:mm A (z)" tz=this.extraRecords.timezone}} | ||
{{general-date this.record 'date-time-tz-short' tz=this.extraRecords.timezone}} | ||
</span> | ||
{{else if this.record}} | ||
<span> | ||
{{general-date this.record (if this.props.options.dateFormat this.props.options.dateFormat "D MMM, YYYY h:mm A")}} | ||
{{general-date this.record (if this.props.options.dateFormat this.props.options.dateFormat 'date-time-short')}} | ||
</span> | ||
{{/if}} |
This file contains hidden or 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<span> | ||
{{general-date this.record 'D MMM, YYYY h:mm A'}} | ||
{{general-date this.record 'date-time-short'}} | ||
<br>To<br> | ||
{{general-date this.extraRecords.validTill 'D MMM, YYYY h:mm A'}} | ||
{{general-date this.extraRecords.validTill 'date-time-short'}} | ||
</span> |
4 changes: 2 additions & 2 deletions
4
app/templates/components/ui-table/cell/events/view/tickets/attendees/cell-date.hbs
This file contains hidden or 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{{#if (eq @record.status 'completed')}} | ||
{{general-date @record.completedAt "D MMM, YYYY h:mm A"}} | ||
{{general-date @record.completedAt 'date-time-short'}} | ||
{{else}} | ||
{{general-date @record.createdAt "D MMM, YYYY h:mm A"}} | ||
{{general-date @record.createdAt 'date-time-short'}} | ||
{{/if}} |
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2
app/templates/components/ui-table/cell/events/view/tickets/discount-codes/cell-validity.hbs
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<span> | ||
{{general-date this.record 'D MMM, YYYY h:mm A'}} | ||
{{general-date this.record 'date-time-short'}} | ||
</span> |
4 changes: 2 additions & 2 deletions
4
app/templates/components/ui-table/cell/events/view/tickets/orders/cell-date.hbs
This file contains hidden or 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{{#if this.record}} | ||
<div> | ||
{{general-date this.record 'D MMM, YYYY h:mm A'}} | ||
{{general-date this.record 'date-time-short'}} | ||
</div> | ||
{{else}} | ||
<div> | ||
{{general-date this.extraRecords.createdAt 'D MMM, YYYY h:mm A'}} | ||
{{general-date this.extraRecords.createdAt 'date-time-short'}} | ||
</div> | ||
{{/if}} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.