フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Luca Lupo
Date on Liferay - Bug or Not?
2012/11/21 1:36
答え

Luca Lupo

ランク: Regular Member

投稿: 106

参加年月日: 2012/10/01

最近の投稿

Hi Guys, I realized that there might be another important bug out there.

Basically, if you create an article the displayDate is correct (current day). But when you modify an existing one, in particular when you modify one or all of the date (Display, Expirtaion, Review) those dates are save on the DB with one day plus. Then, going in control panel->web content (on left menu) you can see an overview of the articles present on the portal and here the display date is decremented by one.

How can I fix that without doing 3-4 hooks?

Thanks

Luca
Hitoshi Ozawa
RE: Date on Liferay - Bug or Not?
2012/11/21 13:49
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7952

参加年月日: 2010/03/23

最近の投稿

Have you checked if it's not the time zone issue?
Luca Lupo
RE: Date on Liferay - Bug or Not?
2012/11/22 4:03
答え

Luca Lupo

ランク: Regular Member

投稿: 106

参加年月日: 2012/10/01

最近の投稿

I didn't know about this issue...could you tell me more about it?

Thanks

Luca
Ezequiel Turovetzky
RE: Date on Liferay - Bug or Not?
2013/02/14 15:48
答え

Ezequiel Turovetzky

ランク: New Member

投稿: 12

参加年月日: 2012/07/04

最近の投稿

Hi, guys! Same problem here! In my case, this happened suddenly, everything was working fine until today.
Did you find anything?
Ezequiel Turovetzky
RE: Date on Liferay - Bug or Not?
2013/02/14 16:33
答え

Ezequiel Turovetzky

ランク: New Member

投稿: 12

参加年月日: 2012/07/04

最近の投稿

Ok, this is what we did. Last week we changed the default timezone from America/Los_Angeles to America/Sao_Paulo, but we didn't restart the servers... until today, and that's when the problem showed up.

Now, we've changed the default time zone back to America/Los_Angeles and we restarted the server, and the problem went off. I can change back to America/Sao_Paulo but I know that when restarting the servers the problem is going to show up again.

I think there's a bug there, isn't?

Regards,
Ezequiel
David H Nebinger
RE: Date on Liferay - Bug or Not?
2013/02/15 6:21
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 8378

参加年月日: 2006/09/01

最近の投稿

Ezequiel Turovetzky:
I think there's a bug there, isn't?


No, it's not a bug.

Dates are stored in the database as GMT. When you change the timezone (either as a user or the server default timezone), you're only affecting how the dates are displayed.

All you were seeing was the date in the America/San_Paulo timezone format, but the underlying dates remain the same.