[jira] Commented: (OFBIZ-2) Add Timezone versions of functions in UtilDateTime

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2) Add Timezone versions of functions in UtilDateTime

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492809 ]

Adrian Crum commented on OFBIZ-2:
---------------------------------

I like the change to the Party entity - that is the most logical place to store the time zone preference.

I'm not sure what framework/common/webcommon/includes/timezones.ftl is used for. You can get that list from the TimeZone class itself.

I will apply the UtilDateTime part of the patch to my local copy and play with it. I think the patch might need some minor changes.

> Add Timezone versions of functions in UtilDateTime
> --------------------------------------------------
>
>                 Key: OFBIZ-2
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: All
>            Reporter: Vinay Agarwal
>         Attachments: 06-06-21 Timezone.patch
>
>
> I am starting to work with timezones. The first thing I came across is UtilDateTime's functions completely ignore timezones. I plan to create timezone versions of functions like getDayStart that will take a timezone id string or a TimeZone. I would not use any deprecated functions but do not plan to change their use in existing functions. I would appreciate suggestions.
> Regards,
> Vinay Agarwal

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.