×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:DateField implementation bug in Nokia 6600 (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search
extkbeditor2 (Talk | contribs)
m
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot change of template (Template:KnowledgeBase) - now using Template:ArticleMetaData)
Line 2: Line 2:
 
__NOTOC__
 
__NOTOC__
 
__NOEDITSECTION__
 
__NOEDITSECTION__
{{KnowledgeBase
+
{{ArticleMetaData
 
|id=KIJ000445
 
|id=KIJ000445
 
|platform=S60 2nd Edition
 
|platform=S60 2nd Edition
Line 10: Line 10:
 
|creationdate=October 19, 2006
 
|creationdate=October 19, 2006
 
|keywords=
 
|keywords=
 +
 +
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
 +
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 +
|sdk=<!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
 +
|devicecompatability=<!-- Compatible devices (e.g.: All* (must have GPS) ) -->
 +
|signing=<!-- Empty or one of Self-Signed, DevCert, Manufacturer -->
 +
|capabilities=<!-- Capabilities required (e.g. Location, NetworkServices.) -->
 +
|author=[[User:Technical writer 1]]
 
}}
 
}}
  

Revision as of 14:06, 25 June 2011

Template:KBKI


Article Metadata
Tested with
Devices(s): Nokia 6600 (sw version 5.53.0)
Compatibility
Platform(s): S60 2nd Edition
S60 2nd Edition (initial release)
Article
Created: User:Technical writer 1 (19 Oct 2006)
Last edited: hamishwillee (25 Jun 2011)

Overview

DateField does not display time zone offset.

Description

DateField doesn’t  use the time zone offset, but instead always displays the default time of the phone.

How to reproduce

Create a new time zone offset value with the following line:
TimeZone timezone = TimeZone.getTimeZone("GMT-00:30");
The example uses minus 30 minutes as an offset value. Use the created offset values as a parameter in dateField constructor:
today = new Date(System.currentTimeMillis());
datefield = new DateField("title",DateField.DATE_TIME, timezone);
datefield.setDate(today);
Now the dateField should have the current date and current time +/- the selected offset value.

64 page views in the last 30 days.
×