Difference between revisions of "Tutorial:Change or customize date and time formats"

From The iPhone Wiki
Jump to: navigation, search
m
Line 1: Line 1:
{{delete|This is better off on a n00b wiki}}
 
 
== Tutorial ==
 
== Tutorial ==
 
They are saved in a plist file in [[:/private/var/mobile/Library/Caches/DateFormats.plist]]
 
They are saved in a plist file in [[:/private/var/mobile/Library/Caches/DateFormats.plist]]
Line 6: Line 5:
   
 
Unfortunately the file is in the binary plist format, so you may need to use a utility such as plutil to convert it to text, edit and then convert back to binary.
 
Unfortunately the file is in the binary plist format, so you may need to use a utility such as plutil to convert it to text, edit and then convert back to binary.
A perl based version of plutil can be found [http://scw.us/iPhone/plutil/ here]. This is a dos file so for use on Linux you have to first convert it to *nix format.
 
   
 
You can also change the way the calendar is displayed by changing the locale property in the same file.
 
You can also change the way the calendar is displayed by changing the locale property in the same file.
  +
  +
== PList Tools ==
  +
* A perl based version of plutil can be found [http://scw.us/iPhone/plutil/ here]. This is a dos file so for use on Linux you have to first convert it to *nix format.
  +
* [http://filehippo.com/download_notepad Notepad++] is a good tool for {{wp|Microsoft Windows}}

Revision as of 18:09, 7 June 2011

Tutorial

They are saved in a plist file in /private/var/mobile/Library/Caches/DateFormats.plist

Copy this file to your PC or MAC, edit the formats in the file and copy back :-)

Unfortunately the file is in the binary plist format, so you may need to use a utility such as plutil to convert it to text, edit and then convert back to binary.

You can also change the way the calendar is displayed by changing the locale property in the same file.

PList Tools

  • A perl based version of plutil can be found here. This is a dos file so for use on Linux you have to first convert it to *nix format.
  • Notepad++ is a good tool for Template:Wp