Using regional settings from windows registry

Hi,

On our web pages, we would like to show all dates and times in the
format defined on the server’s registry. The rails application will be
installed in different countries, hence we want to cater to all types
date and time formats by picking it from the registry.
The formats used in the registry are such as M/d/yyyy, whereas the Time
class in Ruby uses formats such as %m/%d/%Y.

Is there a plugin that lets us convert the win registry format to Ruby
format?
Better still, does rails let us display dates and times in formats
defined in the server’s registry?
Remember we want the settings from the server and not the client. This
is because of a specific requirement.

-Yash

you should be able to read from the servers registry using the
win32api…

No doubt you can make this work.

On Thursday, March 23, 2006, at 2:48 PM, Yash wrote:

format?
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

Mikkel B.

www.strongside.dk - Football Portal(DK)
nflfeed.helenius.org - Football News(DK)
ting.minline.dk - Buy Old Stuff!(DK)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs