Is it possible to change the format of the date in puppet-dashboard, from the American style to the format the rest of the world uses? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Rob McBroom
2010-Aug-27 12:35 UTC
Re: [Puppet Users] Change date format in puppet-dashboard
On Aug 27, 2010, at 3:41 AM, matonb wrote:> Is it possible to change the format of the date in puppet-dashboard, > from the American style to the format the rest of the world uses?I''d settle for having it display in my time zone instead of UTC. :) My dashboard installation (1.0.3) shows dates like 2010-08-27 12:30 UTC Isn''t that “the format the rest of the world uses” – largest to smallest? American style (which makes no sense to me) would be more like 08-27-2010 12:30 UTC -- Rob McBroom <http://www.skurfer.com/> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hi Rob, Your quite correct, I wasn''t being very clear! I was referring to the Daily Run status graph which shows mm-dd-yy on my dashboard (1.0.3). And yes it would be nice to use the local time zone instead of UTC! and to be honest, the only way to make it really unambiguous would be to use MMM instead of MM On Aug 27, 1:35 pm, Rob McBroom <mailingli...@skurfer.com> wrote:> On Aug 27, 2010, at 3:41 AM, matonb wrote: > > > Is it possible to change the format of the date in puppet-dashboard, > > from the American style to the format the rest of the world uses? > > I''d settle for having it display in my time zone instead of UTC. :) > > My dashboard installation (1.0.3) shows dates like > > 2010-08-27 12:30 UTC > > Isn''t that “the format the rest of the world uses” – largest to smallest? American style (which makes no sense to me) would be more like > > 08-27-2010 12:30 UTC > > -- > Rob McBroom > <http://www.skurfer.com/>-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Steve Nielsen
2010-Aug-27 13:10 UTC
Re: [Puppet Users] Re: Change date format in puppet-dashboard
I think date format should be a configurable option. Steve On Fri, Aug 27, 2010 at 8:08 AM, matonb <brett.maton@googlemail.com> wrote:> Hi Rob, > > Your quite correct, I wasn''t being very clear! > > I was referring to the Daily Run status graph which shows mm-dd-yy > on my dashboard (1.0.3). > And yes it would be nice to use the local time zone instead of UTC! > > and to be honest, the only way to make it really unambiguous would > be to use MMM instead of MM > > On Aug 27, 1:35 pm, Rob McBroom <mailingli...@skurfer.com> wrote: >> On Aug 27, 2010, at 3:41 AM, matonb wrote: >> >> > Is it possible to change the format of the date in puppet-dashboard, >> > from the American style to the format the rest of the world uses? >> >> I''d settle for having it display in my time zone instead of UTC. :) >> >> My dashboard installation (1.0.3) shows dates like >> >> 2010-08-27 12:30 UTC >> >> Isn''t that “the format the rest of the world uses” – largest to smallest? American style (which makes no sense to me) would be more like >> >> 08-27-2010 12:30 UTC >> >> -- >> Rob McBroom >> <http://www.skurfer.com/> > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Yes you can - See the file environment.rb in the puppet-dashboard/config directory I changed my entry to: config.time_zone = ''Pacific Time (US & Canada)'' On Aug 27, 6:10 am, Steve Nielsen <st...@nielsenhq.com> wrote:> I think date format should be a configurable option. > > Steve > > On Fri, Aug 27, 2010 at 8:08 AM, matonb <brett.ma...@googlemail.com> wrote: > > Hi Rob, > > > Your quite correct, I wasn''t being very clear! > > > I was referring to the Daily Run status graph which shows mm-dd-yy > > on my dashboard (1.0.3). > > And yes it would be nice to use the local time zone instead of UTC! > > > and to be honest, the only way to make it really unambiguous would > > be to use MMM instead of MM > > > On Aug 27, 1:35 pm, Rob McBroom <mailingli...@skurfer.com> wrote: > >> On Aug 27, 2010, at 3:41 AM, matonb wrote: > > >> > Is it possible to change the format of the date in puppet-dashboard, > >> > from the American style to the format the rest of the world uses? > > >> I''d settle for having it display in my time zone instead of UTC. :) > > >> My dashboard installation (1.0.3) shows dates like > > >> 2010-08-27 12:30 UTC > > >> Isn''t that “the format the rest of the world uses” – largest to smallest? American style (which makes no sense to me) would be more like > > >> 08-27-2010 12:30 UTC > > >> -- > >> Rob McBroom > >> <http://www.skurfer.com/> > > > -- > > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > > To post to this group, send email to puppet-users@googlegroups.com. > > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Rob McBroom
2010-Aug-27 18:26 UTC
Re: [Puppet Users] Re: Change date format in puppet-dashboard
On Aug 27, 2010, at 2:19 PM, Rustler wrote:> Yes you can - > > See the file environment.rb in the puppet-dashboard/config directory > > I changed my entry to: > > config.time_zone = ''Pacific Time (US & Canada)''I think he was talking about the way the dates appear, not the time zone, but still, that''s a great tip. Thanks. -- Rob McBroom <http://www.skurfer.com/> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Igal Koshevoy
2010-Aug-27 22:38 UTC
Re: [Puppet Users] Re: Change date format in puppet-dashboard
Regarding the timezone and date-time format discussion: we''d like to resolve this and have an issue assigned to one of the next releases. Do the details below capture the intended behavior? http://projects.puppetlabs.com/issues/4605 Application should use the timezone and format set in a site-specific configuration Currently: * Timezone is set in |config/environment.rb| and this file must be edited to alter it. This is bad because this file is versioned and is part of the app. Worse still, not everything in the application uses it — such as Status::by_interval uses the timezone that’s set on the operating system instead. * Time/date formats are set in |config/initializers/time_formats.rb|. These now use international format, but we should accommodate people with other preferences. * Charts use their own format, ignoring the timezone and formatting used in the rest of the application.. Desired behavior: * Site-wide settings should be implemented, see #4604 <http://projects.puppetlabs.com/issues/4604> * Timezone setting should be added to the site-wide settings * Date-time format setting should be added to the site-wide settings * Everything should use the timezone settings, e.g. the views, Status::by_interval, charts, etc. * Everything should use the date-time formatting settings, e.g. the Rails views and charts. -igal -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Maton Brett
2010-Sep-01 08:02 UTC
Re: [Puppet Users] Re: Change date format in puppet-dashboard
I think that implementing the desired behaviour you''ve specified would definitely be a move in the right direction. Putting site-wide settings in on place would avoid confusion and frustration! Regards, Brett On 27 Aug 2010, at 23:38, Igal Koshevoy wrote:> Regarding the timezone and date-time format discussion: we''d like to resolve this and have an issue assigned to one of the next releases. Do the details below capture the intended behavior? > > http://projects.puppetlabs.com/issues/4605 > > Application should use the timezone and format set in a site-specific configuration > > Currently: > Timezone is set in config/environment.rb and this file must be edited to alter it. This is bad because this file is versioned and is part of the app. Worse still, not everything in the application uses it — such as Status::by_interval uses the timezone that’s set on the operating system instead. > Time/date formats are set in config/initializers/time_formats.rb. These now use international format, but we should accommodate people with other preferences. > Charts use their own format, ignoring the timezone and formatting used in the rest of the application.. > Desired behavior: > > Site-wide settings should be implemented, see #4604 > Timezone setting should be added to the site-wide settings > Date-time format setting should be added to the site-wide settings > Everything should use the timezone settings, e.g. the views, Status::by_interval, charts, etc. > Everything should use the date-time formatting settings, e.g. the Rails views and charts. > -igal > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.