论坛

主页 » 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月1日

最近的帖子

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日 下午1:49
答复

Hitoshi Ozawa

等级: Liferay Legend

帖子: 7949

加入日期: 2010年3月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月1日

最近的帖子

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年2月14日 下午3:48
答复

Ezequiel Turovetzky

等级: New Member

帖子: 12

加入日期: 2012年7月4日

最近的帖子

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年2月14日 下午4:33
答复

Ezequiel Turovetzky

等级: New Member

帖子: 12

加入日期: 2012年7月4日

最近的帖子

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年2月15日 上午6:21
答复

David H Nebinger

Community Moderator

等级: Liferay Legend

帖子: 11064

加入日期: 2006年9月1日

最近的帖子

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.