Giter VIP home page Giter VIP logo

Comments (3)

alvinnguyen avatar alvinnguyen commented on September 17, 2024

Hey Gino,

If you enter the date and time manually, will it be fixed? Just trying to isolate whether it's the datepicker issue or other things.

I'm aware of different backend date behavior in 1.8 and 1.9 too so I'll be checking that shortly.

from promotionschedule.

gino2014 avatar gino2014 commented on September 17, 2024

Hi Alvinnguyen,
thanks for fast answering. but also by entering date and time manually i got no result. But what do you mean with different behavior in 1.8 and 1.9? We are also using magento 1.9.0.1.
best rgards
Gino

from promotionschedule.

jpachecoestepa avatar jpachecoestepa commented on September 17, 2024

Hi both,
We have modified the following file to make it work in Europe:
app/code/community/WeCode/PromotionSchedule/controllers/Adminhtml/Promotionschedule/IndexController.php
Changing this:

$date = date_create_from_format('d/m/Y h:i A', $data['wecode_tasks_time']);
if (!$date){
    $this->_getSession()->addError(Mage::helper('wecode_promotionschedule')->__('Error. Please ensure date is correctly entered (e.g. 03:00 PM, not 15:00 PM)'));

by this:

$date = date_create_from_format('d/m/Y H:i', $data['wecode_tasks_time']);
if (!$date){
    $this->_getSession()->addError(Mage::helper('wecode_promotionschedule')->__('Error. Please ensure date is correctly entered (e.g. 6/7/2017 17:27)'));

I hope this helps someone with the same problem.

from promotionschedule.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.