Yii Framework Forum: Doc bugs - Date and Time Formatting - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Doc bugs - Date and Time Formatting Rate Topic: -----

#1 User is offline   Maxximus 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 146
  • Joined: 24-November 08
  • Location:Spain

Posted 26 November 2008 - 07:06 AM

In the definitive guide there is mentioned: $formatter->format('yyyy-MM-dd',$timestamp)

Probably needs to be $dateFormatter->format('yyyy-MM-dd',$timestamp)

Same goes for $formatter->format('#,##0.00',$number).

Perhaps create one topic for these tiny but important doc-bugs?
0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,856
  • Joined: 04-October 08
  • Location:DC, USA

Posted 26 November 2008 - 07:40 AM

Thanks.

We will create tutorials on individual topics with more details. The guide is more like an overview of every feature.
0

#3 User is offline   tri 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,651
  • Joined: 20-November 08
  • Location:Stockholm, Sweden

Posted 26 November 2008 - 04:33 PM

I'd better throw in this one as well:

Yii::App()->dateFormatter->format('EE HH:mm', $dt)


Format spec 'E', 'EE' and 'EEE' all returns a three letter weekday abbreviation. According to the manual it's expected to be 1,2 or 3 letters.

/Tommy

0

#4 User is offline   tri 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,651
  • Joined: 20-November 08
  • Location:Stockholm, Sweden

Posted 26 November 2008 - 05:41 PM

I may be wrong about what the manual states about weekday formatting. Recalled since previous post that there might be a pointer in the documentation to some external spec. Neverthless, it seems like only the three letter abbreviation is supported in Yii. Also forgot to mention I use sv/sv_se localization, should it make any difference (guess not).

/Tommy

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users