Data e ora notizie / News date and time

Posted by – 17/07/2010

La Home Page del New Blog Times ha un meccanismo che visualizza una scritta rossa “un minuto fa”, “due minuti fa”, “oggi alle HH:mm”, appena prima del riassunto e prima del titolo sulle Flash. Il meccanismo funziona anche sulle pagine degli articoli, sulla colonna di destra dove è visualizzata la lista delle ultime notizie flash.

A causa di un diverso modo di trattare la data e l’ora di WP3.0, tali date e orari venivano calcolate facendo riferimento alla data/ora GMT anziché locale. Ciò portava a visualizzare il dato scorretto: nulla per due ore (finché l’orario GMT non raggiungeva l’orario di pubblicazione) e poi una data/ora inferiore di 2 ore rispetto a quella reale.

Il malfunzionamento è stato corretto.

The Home Page of The New Blog Times has a mechanism that shows a red “One minute ago”, “two minutes ago”, “today at hh:mm” right before the news excerpt and before the Flash News title. The mechanism is also active in pages, on the right column where a list of the latest flash news is shown.

Due to a different date and time functions in WP3.0, those dates and times were calculated using GMT time and not local time. This lead to display news times wrongly: nothing for 2 hours (until GMT time reached the publication time) and then a date/time 2 hours less than real.

The problem has been fixed.

0 Comments on Data e ora notizie / News date and time

Respond

Respond

Comments

Comments