Req #81083 [NEW]: [ SUGGESTION ] Another way to get timezone by timeoffset from current one
From: 6562680 at gmail dot com
Operating system: Win10
PHP version: Irrelevant
Package: Date/time related
Bug Type: Feature/Change Request
Bug description:[ SUGGESTION ] Another way to get timezone by timeoffset from current one
Description:
------------
If you add main geopoint in lat/lng into abbreviations list we have to
sort list by diff from current one to get shortest line.
Example: you are in London (UTC). You want to get closest timezone for
your clients that tell you they have +3 hours from you.
You write function like getTzOffset(int), call it like getTzOffset(5) -
there you should iterate over all abbreviations.
Trying to sort result cities list could become Africa/Madagaskar (first
because of alphabetical order), but i hope your clients is somewhere in
Europe...
Once we have lat/lng of main point of hour line we can sort by x/y
difference to get closest one.
--
Edit bug report at https://bugs.php.net/bug.php?id=81083&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81083&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81083&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81083&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81083&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81083&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81083&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81083&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81083&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81083&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81083&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81083&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81083&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81083&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81083&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81083&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81083&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81083&r=mysqlcfg
Thread (3 messages)
- 6562680 at gmail dot com