Skip to content
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

[BUG] afe_datetime_picker save wrong date #95

Open
denys281 opened this issue Dec 4, 2013 · 1 comment
Open

[BUG] afe_datetime_picker save wrong date #95

denys281 opened this issue Dec 4, 2013 · 1 comment

Comments

@denys281
Copy link
Contributor

denys281 commented Dec 4, 2013

Hi, I use afe_datetime_picker,

My entity:

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="date", type="datetime")
     */
    private $date;

/**
     * Set date
     *
     * @param \DateTime $date
     * @return TvGuide
     */
    public function setDate($date)
    {
        $this->date = $date;

        return $this;
    }

    /**
     * Get date
     *
     * @return \DateTime 
     */
    public function getDate()
    {
        return $this->date;
    }

And my generator:

date:
            label: Время
            formType: afe_datetime_picker

So, when I select in admin for example 25.12.2013, it save to db 24.12.2013. So each time it save date before selected date. I try afe_date_picker and it works correct.

@satiricon
Copy link
Contributor

I'm having the same problem with this type. Weird thing is that I have the problem just in my prod server.
I cant replicate this behaviour in my dev server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants