thumbnail

If the line below is executed in a JavaScript console, what will be the value of hour? var hour = new Date(2015, 9, 18, 0).getHours(); The intuitive answer is zero, and it is right in most situations. Yet, in regions under the America/Sao_Paulo time zone, daylight saving time will start at October 18, 2015 at 0:00, so all clocks will advance to 1 AM once they pass through...

thumbnail

One of the most important features of the new calendar portlet is the ability of consistently showing events to users in different time zones. It is invaluable for global organizations. If your team is scattered around the world, you would really want to make sure things happen at the same time! However, the consistent behavior can be quite difficult to grasp. It is...

thumbnail

I'm working in an awesome component to be shipped from Liferay 6.2 onwards. Some of the features needed to implement it are rather reusable so they were implemented in the Liferay Porta itself. One of them is the new ability of the <liferay-ui:input-localized> tag of inserting a WYSIWYG editor in the page instead of an one-line input or a textarea. How to use it To use...

thumbnail

Since AlloyUI became a base component for Liferay, various amazing tools became available for the Liferay developer. One of these are the JavaScript components such as Liferay.Store. This component allows the developer to store user-related data quickly on the server. To see how it works, let's consider a portlet which stores how the user prefers her coffee: black, sweet or with...