Type DateTime: bad displayDatetime render issue on Magento admin gridMagento 2 - How to add the DateTime UI ComponentConvert datetime and timezone to datetime in Magento 2how can i add shipping carrier column in admin pageInvalid input datetimeDateTime UI Component - adjust the timezoneMagento - Add customer attribute to order gridDatetime Error on Newsletter TemplateHow to save local date in custom datetime fieldPHP set db value according to server datetime
Why do we use low resistance cables to minimize power losses?
Do I need to start off my book by describing the character's "normal world"?
Alignement of different align environment
Adjective or adverb before another adjective
Subgroup generated by a subgroup and a conjugate of it
Interaction between Leonin Warleader and Divine Visitation
What allows us to use imaginary numbers?
If it isn't [someone's name]!
What are the advantages of this gold finger shape?
What exactly happened to the 18 crew members who were reported as "missing" in "Q Who"?
Can anybody tell me who this Pokemon is?
μονάδαι as plural form of μονάς
Number of matrices with bounded products of rows and columns
Regression when x and y each have uncertainties
Ending a line of dialogue with "?!": Allowed or obnoxious?
What if a restaurant suddenly cannot accept credit cards, and the customer has no cash?
Problem with GFCI at start of circuit with both lights and two receptacles
Why can't I see 1861 / 1871 census entries on Freecen website when I can see them on Ancestry website?
How to use the passive form to say "This flower was watered."
Have there ever been other TV shows or Films that told a similiar story to the new 90210 show?
What should I do if actually I found a serious flaw in someone's PhD thesis and an article derived from that PhD thesis?
global variant of csname…endcsname
Meaning and structure of headline "Hair it is: A List of ..."
Do predators tend to have vertical slit pupils versus horizontal for prey animals?
Type DateTime: bad display
Datetime render issue on Magento admin gridMagento 2 - How to add the DateTime UI ComponentConvert datetime and timezone to datetime in Magento 2how can i add shipping carrier column in admin pageInvalid input datetimeDateTime UI Component - adjust the timezoneMagento - Add customer attribute to order gridDatetime Error on Newsletter TemplateHow to save local date in custom datetime fieldPHP set db value according to server datetime
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I want to create a grid to display hours from a collection.
So I add the date column like this:
$this->addColumn ( 'date_birthday', array (
'header' => 'Date of birthday',
'align' => 'right',
'width' => '100px',
'type' => 'datetime'
'index' => 'mydate'
) );
In my collection there is: (it's simplified)
1 2017-11-08 18:00:00
2 2011-11-08 12:00:00
3 3017-11-08 10:00:00
The grid displayed is:
1 2017-11-08 19:00:00
2 2011-11-08 13:00:00
3 3017-11-08 11:00:00
With the 'datetime' attributes you can see that all my hours displayed have 1 hour more than the collection.
And without this attributes hours are displayed properly.
Any idea ?
Thanks !
EDIT: I try that but it doesn't works
$this->addColumn ( 'date_birthday', array (
'header' => 'Date of birthday',
'align' => 'right',
'width' => '100px',
'time' => 'true',
'type' => 'datetime',
'format' => Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM),
'index' => 'mydate'
) );
magento-1.9 datetime
add a comment |
I want to create a grid to display hours from a collection.
So I add the date column like this:
$this->addColumn ( 'date_birthday', array (
'header' => 'Date of birthday',
'align' => 'right',
'width' => '100px',
'type' => 'datetime'
'index' => 'mydate'
) );
In my collection there is: (it's simplified)
1 2017-11-08 18:00:00
2 2011-11-08 12:00:00
3 3017-11-08 10:00:00
The grid displayed is:
1 2017-11-08 19:00:00
2 2011-11-08 13:00:00
3 3017-11-08 11:00:00
With the 'datetime' attributes you can see that all my hours displayed have 1 hour more than the collection.
And without this attributes hours are displayed properly.
Any idea ?
Thanks !
EDIT: I try that but it doesn't works
$this->addColumn ( 'date_birthday', array (
'header' => 'Date of birthday',
'align' => 'right',
'width' => '100px',
'time' => 'true',
'type' => 'datetime',
'format' => Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM),
'index' => 'mydate'
) );
magento-1.9 datetime
without this attributes hours are displayed properly. ??? What you mean ?? please explain
– Rk Rathod
Aug 6 at 8:02
if i don't put the attributes 'type' => 'datetime', the hours are displayed properly but it don't have format. If I put the attributes 'type' => 'datetime' the hour is formatted correctly but there is one hour more than the real hour.
– Theo Cerutti
Aug 6 at 8:41
someone can answer me ??
– Theo Cerutti
Aug 7 at 5:00
add a comment |
I want to create a grid to display hours from a collection.
So I add the date column like this:
$this->addColumn ( 'date_birthday', array (
'header' => 'Date of birthday',
'align' => 'right',
'width' => '100px',
'type' => 'datetime'
'index' => 'mydate'
) );
In my collection there is: (it's simplified)
1 2017-11-08 18:00:00
2 2011-11-08 12:00:00
3 3017-11-08 10:00:00
The grid displayed is:
1 2017-11-08 19:00:00
2 2011-11-08 13:00:00
3 3017-11-08 11:00:00
With the 'datetime' attributes you can see that all my hours displayed have 1 hour more than the collection.
And without this attributes hours are displayed properly.
Any idea ?
Thanks !
EDIT: I try that but it doesn't works
$this->addColumn ( 'date_birthday', array (
'header' => 'Date of birthday',
'align' => 'right',
'width' => '100px',
'time' => 'true',
'type' => 'datetime',
'format' => Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM),
'index' => 'mydate'
) );
magento-1.9 datetime
I want to create a grid to display hours from a collection.
So I add the date column like this:
$this->addColumn ( 'date_birthday', array (
'header' => 'Date of birthday',
'align' => 'right',
'width' => '100px',
'type' => 'datetime'
'index' => 'mydate'
) );
In my collection there is: (it's simplified)
1 2017-11-08 18:00:00
2 2011-11-08 12:00:00
3 3017-11-08 10:00:00
The grid displayed is:
1 2017-11-08 19:00:00
2 2011-11-08 13:00:00
3 3017-11-08 11:00:00
With the 'datetime' attributes you can see that all my hours displayed have 1 hour more than the collection.
And without this attributes hours are displayed properly.
Any idea ?
Thanks !
EDIT: I try that but it doesn't works
$this->addColumn ( 'date_birthday', array (
'header' => 'Date of birthday',
'align' => 'right',
'width' => '100px',
'time' => 'true',
'type' => 'datetime',
'format' => Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM),
'index' => 'mydate'
) );
magento-1.9 datetime
magento-1.9 datetime
edited Aug 6 at 7:28
Mohit Rane
1,30718 bronze badges
1,30718 bronze badges
asked Aug 6 at 3:00
Theo CeruttiTheo Cerutti
189 bronze badges
189 bronze badges
without this attributes hours are displayed properly. ??? What you mean ?? please explain
– Rk Rathod
Aug 6 at 8:02
if i don't put the attributes 'type' => 'datetime', the hours are displayed properly but it don't have format. If I put the attributes 'type' => 'datetime' the hour is formatted correctly but there is one hour more than the real hour.
– Theo Cerutti
Aug 6 at 8:41
someone can answer me ??
– Theo Cerutti
Aug 7 at 5:00
add a comment |
without this attributes hours are displayed properly. ??? What you mean ?? please explain
– Rk Rathod
Aug 6 at 8:02
if i don't put the attributes 'type' => 'datetime', the hours are displayed properly but it don't have format. If I put the attributes 'type' => 'datetime' the hour is formatted correctly but there is one hour more than the real hour.
– Theo Cerutti
Aug 6 at 8:41
someone can answer me ??
– Theo Cerutti
Aug 7 at 5:00
without this attributes hours are displayed properly. ??? What you mean ?? please explain
– Rk Rathod
Aug 6 at 8:02
without this attributes hours are displayed properly. ??? What you mean ?? please explain
– Rk Rathod
Aug 6 at 8:02
if i don't put the attributes 'type' => 'datetime', the hours are displayed properly but it don't have format. If I put the attributes 'type' => 'datetime' the hour is formatted correctly but there is one hour more than the real hour.
– Theo Cerutti
Aug 6 at 8:41
if i don't put the attributes 'type' => 'datetime', the hours are displayed properly but it don't have format. If I put the attributes 'type' => 'datetime' the hour is formatted correctly but there is one hour more than the real hour.
– Theo Cerutti
Aug 6 at 8:41
someone can answer me ??
– Theo Cerutti
Aug 7 at 5:00
someone can answer me ??
– Theo Cerutti
Aug 7 at 5:00
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f284500%2ftype-datetime-bad-display%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f284500%2ftype-datetime-bad-display%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
without this attributes hours are displayed properly. ??? What you mean ?? please explain
– Rk Rathod
Aug 6 at 8:02
if i don't put the attributes 'type' => 'datetime', the hours are displayed properly but it don't have format. If I put the attributes 'type' => 'datetime' the hour is formatted correctly but there is one hour more than the real hour.
– Theo Cerutti
Aug 6 at 8:41
someone can answer me ??
– Theo Cerutti
Aug 7 at 5:00